The /O options control various optimizations that help you create code for maximum speed or minimum size.
-
/O2 optimizes code for maximum speed. 为获得最高速度而优化代码。
-
/Ob controls inline function expansion. 控制内联函数展开。
-
/Od disables optimization, speeding compilation and simplifying debugging. 禁用优化,从而加快编译并简化调试。
-
/Og enables global optimizations. 启用全局优化。
-
/Oi generates intrinsic functions for appropriate function calls. 为适当的函数调用生成内部函数。
-
/Os tells the compiler to favor optimizations for size over optimizations for speed. 通知编译器优选大小优化而非速度优化。
-
/Ot (a default setting) tells the compiler to favor optimizations for speed over optimizations for size. (默认设置)通知编译器优选速度优化而非大小优化。
-
/Ox selects full optimization. 选择完全优化。
-
/Oy suppresses the creation of frame pointers on the call stack for quicker function calls. 取消在调用堆栈上创建框架指针,以更快地进行函数调用。