/O options (Optimize code) (original) (raw)

The /O options control various optimizations that help you create code for maximum speed or minimum size.

Remarks

You can combine multiple /O options into a single option statement. For example, /Odi is the same as /Od /Oi. Certain options are mutually exclusive and cause a compiler error if used together. For more information, see the individual /O options.

See also

MSVC compiler options
MSVC compiler command-line syntax