The /Gs Option

The /Gs option is used to disable stack checking. To enable stack limit checking, use the /Ge option.

When stack limit checking is enabled, it is assumed that there may only be a single guard page for a thread. For the Alpha architecture, a hardware page can have a size of 8K, 16K, 32K, or 64K, depending on the implementation. The stack checking logic is based on the minimum allowed page size of 8K.

Because of architectural differences, /Gs is less useful on Alpha than on x86. For more information, refer to the Alpha Calling Standard and the Alpha Architecture Reference Manual.

Note   If you disable stack checking, verify that your application only uses small frames, or that you’ve linked with a large enough initial stack size to satisfy program requirements. With stack checking disabled, overwriting the end of the stack can have unpredictable results.