/O1, /O2 - Specify Small or Fast Code
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, /Ob1 | Smallest code |
/O2 | /Gfy /Otg, /Oi, /Ob1 | Fastest code |
See Also
About Microprocessor Compilers | ARM Guide | Hitachi Guide | MIPS Guide
Last updated on Thursday, April 08, 2004
© 1992-2003 Microsoft Corporation. All rights reserved.