/Gs Compiler Option

Syntax: Default:
/Gs[+|-] /Gs-

Use /Gs to remove stack probes from the generated code.

Stack probes go into the prolog of every function with more than 2K of stack storage. Your application can therefore run faster if /Gs+ is used. However, you should not remove stack probes unless your application meets any of the following criteria:

By default, stack probes are not removed.



Stack Probes


Summary of Compiler Options