NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

/O1, /O2 (Minimize Size, Maximize Speed)

Feature Only in Professional and Enterprise Editions   Code optimization is supported only in Visual C++ Professional and Enterprise Editions. For more information, see Visual C++ Editions.
/O1
/O2

These options select a predefined set of options that affect the size and speed of files as follows:

Option Equivalent to Comment
/O1 (Minimize Size) /Og /Os /Oy /Ob1 /Gs /Gf /Gy Creates the smallest code in the majority of cases.
/O2 (Maximize Speed) /Og /Oi /Ot /Oy /Ob1 /Gs /Gf /Gy Creates the fastest code in the majority of cases. (Default setting for release builds)

x86 Specific —>

You can use other options to improve the size or speed of many applications (for example, the /G5 option to generate code optimized for the Pentium processor).

These options imply the use of the Frame-Pointer Omission (/Oy) option.

END x86 Specific

See Also

/O options (Optimize Code) | Compiler Options | Setting Compiler Options | /EH