/G (Optimize for Processor) Options
Tells the compiler to optimize code generation for the specified processor.
Optimize for Itanium processor. Only available in the Itanium cross compiler or Itanium native compiler.
Optimize for Itanium2 processor (default between /G1 and /G2) Only available in the Itanium cross compiler or Itanium native compiler.
/G is available in all editions of Visual C++, but the compiler can perform more optimizations when /G is used with one of the /O compiler options. However, /O is not available in the Visual C++ standard edition.
To set this compiler option in the Visual Studio development environment
Open the project's Property Pages dialog box. For details, see How to: Open Project Property Pages.
Click the C/C++ folder.
Click the Command Line property page.
Type the compiler option in the Additional Options box.
To set this compiler option programmatically
- See AdditionalOptions.