Visible to Intel only — GUID: GUID-63B736AF-EA8B-4695-A9C9-AEDCAB84CBE5
Visible to Intel only — GUID: GUID-63B736AF-EA8B-4695-A9C9-AEDCAB84CBE5
Gs
Lets you control the threshold at which the stack checking routine is called or not called. This feature is only available for ifort.
Linux: |
None |
macOS: |
None |
Windows: |
/Gs[n] |
n |
Is the number of bytes that local variables and compiler temporaries can occupy before stack checking is activated. This is called the threshold. |
/Gs |
Stack checking occurs for routines that require more than 4KB (4096 bytes) of stack space. This is also the default if you do not specify n. |
This option lets you control the threshold at which the stack checking routine is called or not called. If a routine's local stack allocation exceeds the threshold (n), the compiler inserts a __chkstk() call into the prologue of the routine.
This option only applies to host compilation. When offloading is enabled, it does not impact device-specific compilation. Offloading can only be enabled when using ifx.
None