Compartilhar via


/O1, /O2 - Specify Small or Fast Code (Windows CE 5.0)

Send Feedback

These options select a predefined set of options that affect the size and speed of executable files. The /O1 option produces very small executable files. The /O2 option produces very fast executable files.

Both options produce executable files or DLLs that run well on most development workstations. The result of using /O1 or /O2 is more comprehensive than that of using /Os or /Ot.

The following table shows the options that the optimizing compiler uses to implement /O1 and /O2.

Option Equivalent to Comment
/O1 /GFy /Osg, /Ob2 Smallest code
/O2 /GFy /Otg, /Oi, /Ob2 Fastest code

See Also

Compiler Options

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.