/Os, /O, /Ot - Optimize for Size or Speed

These options, /O, /Os and /Ot allow you to specify a preference for either small machine code or fast machine code when the compiler recognizes the existence of such a choice.

The /Os option minimizes the size of executable files and DLLs by instructing the compiler to favor size over speed; it produces smaller, but possibly slower, code. If you do not select this option, code is larger, but may be faster.

The /Os option is included in the /O1, /O2 - Specify Small or Fast Code option. The /O1 option combines several options to produce very small code.

The /O and /Ot options are equivalent. They maximize the speed of executable files and DLLs by instructing the compiler to favor speed over size; these options produce faster, but possibly larger, code. This is the default.

The /Ot option is included in /O1, /O2 - Specify Small or Fast Code. The /O2 option combines several options to produce very fast code.

See Also

About Microprocessor Compilers | ARM Guide | Hitachi Guide | MIPS Guide | /O1, /O2 - Specify Small or Fast Code

 Last updated on Thursday, April 08, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.