Does turning on /GS- switch make the final binary code run slower?
-
Hi all, I'm wondering if turning on the /GS- switch (that's the Buffer Security Check option, it's used to prevent Buffer Overrun) make the final binary code run slower? Environment: 1.) In pure WIN32 with C++ code. (native apps) 2.) Release build. 3.) WinXP /w SP2. Thanks.
-
Hi all, I'm wondering if turning on the /GS- switch (that's the Buffer Security Check option, it's used to prevent Buffer Overrun) make the final binary code run slower? Environment: 1.) In pure WIN32 with C++ code. (native apps) 2.) Release build. 3.) WinXP /w SP2. Thanks.
Link2006 wrote:
I'm wondering if turning on the /GS- switch (that's the Buffer Security Check option, it's used to prevent Buffer Overrun) make the final binary code run slower?
Compile with and without the switch and then investigate...
too much daily WTF for someone... - Anton Afanasyev
Last modified: Monday, August 21, 2006 2:50:09 PM -- Did a test program and it made no difference in speed or size.
-
Link2006 wrote:
I'm wondering if turning on the /GS- switch (that's the Buffer Security Check option, it's used to prevent Buffer Overrun) make the final binary code run slower?
Compile with and without the switch and then investigate...
too much daily WTF for someone... - Anton Afanasyev
Last modified: Monday, August 21, 2006 2:50:09 PM -- Did a test program and it made no difference in speed or size.
PaulC1972 wrote:
Compile with and without the switch and then investigate...
I can't tell the difference, maybe that's because both of my machines are rather fast, and my low-end PC is installed with Linux, so I can't test it on that machine. I'm going to leave that switch on for now.
-
PaulC1972 wrote:
Compile with and without the switch and then investigate...
I can't tell the difference, maybe that's because both of my machines are rather fast, and my low-end PC is installed with Linux, so I can't test it on that machine. I'm going to leave that switch on for now.
Did you notice the modification that I had to my post. I didn't find any difference between the two executables generated with and without the switch. Speed and size were the same. Running a diff between the two executables says they differ :suss:
too much daily WTF for someone... - Anton Afanasyev
-
Did you notice the modification that I had to my post. I didn't find any difference between the two executables generated with and without the switch. Speed and size were the same. Running a diff between the two executables says they differ :suss:
too much daily WTF for someone... - Anton Afanasyev