/G   (Optimize for Processor) Options

OverviewHow Do ICompiler Options

The Processor options direct the compiler to optimize code generation for the 80386, 80486, or Pentium® processors.

Command Line Project Settings Description
/GB Blend Optimizes the code created to favor the Pentium. It blends the optimizations for the 80386 (/G3), 80486 (/G4), Pentium (/G5), and Pentium Pro (/G6) options. This option forces a value of 500 for the _M_IX86 preprocessor macro. This value is the default. Future versions of the compiler will issue a different value to reflect the dominant processor.
/G6 Pentium Pro Optimizes the code created to favor the Pentium Pro. Use this option for programs meant only for the Pentium Pro. This option forces a value of 600 for the _M_IX86 preprocessor macro.
/G5 Pentium Optimizes the code created to favor the Pentium. Use this option for programs meant only for the Pentium. This option forces a value of 500 for the _M_IX86 preprocessor macro.
/G3 80386 Phased out for Visual C++ 5.0. Forces a value of 300 for the _M_IX86 preprocessor macro. The compiler ignores this option.
/G4 80486 Phased out in Visual C++ 5.0. Forces a value of 400 for the _M_IX86 preprocessor macro. The compiler ignores this option.

To find these options in the development environment, click Settings on the Project menu. Then click the C/C++ tab, and click Code Generation in the Category box. Click the Processor drop-down list.