Os

Enables most speed optimizations.

IDE Equivalent

Windows: C/C++ > Optimization > Favor Size or Speed

Linux: None

Mac OS: None

Architectures

IA-32 architecture, Intel® 64 architecture, IA-64 architecture

Syntax

Linux and Mac OS: -Os
Windows:  /Os

Arguments

None

Default

OFF Optimizations are made for code speed.
If O1 is specified, Os is the default.

Description

This option enables most speed optimizations, but disables some that increase code size for a small speed benefit.

Alternate Options

None

See Also

O compiler option

Ot compiler option