Visible to Intel only — GUID: GUID-6036E8A3-EE04-4718-9A13-E08A9E158EEE
Visible to Intel only — GUID: GUID-6036E8A3-EE04-4718-9A13-E08A9E158EEE
GS
Determines whether the compiler generates code that detects some buffer overruns.
Syntax
Linux: |
None |
Windows: |
/GS[:keyword] /GS- |
Arguments
keyword |
Specifies the level of stack protection heuristics used by the compiler. Possible values are:
|
Default
/GS- |
The compiler does not detect buffer overruns. |
Description
This option determines whether the compiler generates code that detects some buffer overruns that overwrite a function's return address, exception handler address, or certain types of parameters.
This option has been added for Microsoft compatibility. For more details about option /GS, see the Microsoft documentation.
Following Visual Studio 2008, the Microsoft implementation of option /GS became more extensive (for example, more routines are protected). The performance of some programs may be impacted by the newer heuristics. In such cases, you may see better performance if you specify /GS:partial.
IDE Equivalent
Alternate Options
Linux: -fstack-security-check
Windows: None