Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
Send Feedback on this topic to the authors