2.3.6 /O, /O1, /O2, /Od and /Ox

CLAXP provides four basic levels of optimization:

The default if no explicit optimization option is given is equivalent to /Ox /Oi- unless /Zi or /Z7 is specified (in which case the default is /Od).

/O is equivalent to /O2.

/Ox and /O2 (similarly, /O) include all of the optimizations that are implied by the Microsoft /Oc (block subexpression), /Og (global subexpression), /Oi (enable intrinsics), /Ol (loop optimization), and /Oo (peephole optimization) options in some prior C compilers. However, CLAXP does not allow independent control of these optimizations (other than /Oi).

Note that /Os and /Ot, which express a preferred bias in the trade-offs performed for other optimizations, are not supported. Typical usage of these options with other Microsoft compilers would be in conjunction with /Ox. The intent of /Oxs is best expressed as /O1i to CLAXP, and the intent of /Oxt is achieved by either /Ox or /O2 (depending on the application).