Os

Enables optimizations that do not increase code size and produces smaller code size than O2.

IDE Equivalent

Windows: Optimization > Favor Size or Speed

Linux: None

Mac OS X: None

Architectures

IA-32, Intel® 64 architectures

Syntax

Linux and Mac OS X:

-Os

Windows:

/Os

Arguments

None

Default

OFF

Optimizations are made for code speed. However, if O1 is specified, Os is the default.

Description

This option enables optimizations that do not increase code size and produces smaller code size than O2. It disables some optimizations that increase code size for a small speed benefit.

This option tells the compiler to favor transformations that reduce code size over transformations that produce maximum performance.

Alternate Options

None

See Also


Submit feedback on this help topic

Copyright © 1996-2011, Intel Corporation. All rights reserved.