C/C++ Compiler (cl.hlp) (Table of Contents; Topic list)
Debug/Release Optimization Options
                                             Up Contents Index Back
─────Programmer's WorkBench─────────────────────────────────────────────────
 
     Optimization makes your program smaller or faster by eliminating
     unnecessary instructions and rearranging code.
     See: Optimization Options
 
     General
          Optimize for Time       Equivalent to specifying /Ot.
                                  See: Optimize for Time
 
          Optimize for Space      Equivalent to specifying /Os.
                                  See: Optimize for Space
 
          Disable Optimization    Disables optimizations other than
                                  those chosen in the Specific section
                                  of this dialog box. Equivalent to
                                  specifying /Od.
                                  See: Disabling Optimization
 
     Inlining
          Give the compiler different levels of control over generation
          of inline code:
 
          Supress Inlining            Equivalent to specifying /Ob0
          Allow Explicit Inlining     Equivalent to specifying /Ob1
          Allow Automatic Inlining    Equivalent to specifying /Ob2
 
          See: Controlling Inline Function Expansion
 
     Aliasing
          Control the assumptions the compiler makes regarding aliasing
          when it performs optimizations:
 
          Assume No Aliasing          Equivalent to specifying /Oa
          Aliasing Only Across Calls  Equivalent to specifying /Ow
          Allow Aliasing              Turn off restrictions on aliasing
 
          See: Assume No Aliasing
 
     Specific
          Loop Code Optimization
               Allow moving or rewriting code so that it executes
               faster. Equivalent to specifying /Ol.
               See: Optimize for Space
 
          Merge Global Expressions
               Enables global-level common subexpression optimization
               which allows the compiler to calculate the value of a
               common subexpression once. Equivalent to specifying /Og.
               See: Enable Common Subexpression Optimization
 
          Merge Local Expressions
               Enables block-level common subexpression optimization
               which allows the compiler to calculate the value of a
               common subexpression once (default). Equivalent to
               specifying /Oc.
               See: Enable Common Subexpression Optimization
 
          Improve Float Consistency
               Improve the consistency of tests for equality and
               inequality. Equivalent to specifying /Op.
               See: Improve Float Consistency
 
          Global Register Allocation
               Disables register keyword and allows storage of
               frequently used variables and subexpressions in
               registers. Equivalent to specifying /Oe.
               See: Global Register Allocation
 
          Generate Intrinsic Functions
               Equivalent to specifying /Oi.
               See: Generate Intrinsic Functions
                                    -♦-