/O Options (Optimize Code)
The /O options control various optimizations that help you create code for maximum speed or minimum size.
/O1, /O2 (Minimize Size, Maximize Speed) optimizes code for minimum size.
/O1, /O2 (Minimize Size, Maximize Speed) optimizes code for maximum speed.
/Ob (Inline Function Expansion) controls inline function expansion.
/Od (Disable (Debug)) disables optimization, speeding compilation and simplifying debugging.
/Og (Global Optimizations) enables global optimizations.
/Oi (Generate Intrinsic Functions) generates intrinsic functions for appropriate function calls.
/Os, /Ot (Favor Small Code, Favor Fast Code) tells the compiler to favor optimizations for size over optimizations for speed.
/Os, /Ot (Favor Small Code, Favor Fast Code) (a default setting) tells the compiler to favor optimizations for speed over optimizations for size.
/Ox (Full Optimization) selects full optimization.
/Oy (Frame-Pointer Omission) suppresses the creation of frame pointers on the call stack for quicker function calls.