CL /Gs



The optional argument consists of whatever follows immediately within the same command-line token, provided that it does not begin with a hyphen or forward slash.

The argument is formally numeric. The notation with a base prefix is allowed. Non-zero values less than 10 are coerced to 4096, with a warning (D4014).


The /Gs option overrides /Ge and earlier instances of itself.

This option passes to the front-end C and C++ compilers (C1 and C1XX) as /Gs with no argument. It passes to the back-end compiler (C2) with number, now in decimal notation. If no number is given, it is defaulted to 4096.


The /Gs option (with no argument) is set by default, being hard-coded in CL as an initial option.