inline-level, Ob

Specifies the level of inline function expansion.

IDE Equivalent

Windows: Optimization > Inline Function Expansion

Linux: Optimization > Inline Function Expansion

Mac OS X: Optimization > Inline Function Expansion

Architectures

IA-32, Intel® 64 architectures

Syntax

Linux and Mac OS X:

-inline-level=n

Windows:

/Obn

Arguments

n

Is the inline function expansion level. Possible values are 0, 1, and 2.

Default

-inline-level=2 or /Ob2

This is the default if option O2 is specified or is in effect by default. On Windows* systems, this is also the default if option O3 is specified.

-inline-level=0 or /Ob0

This is the default if option -O0 (Linux* OS and Mac OS* X) or /Od (Windows) is specified.

Description

This option specifies the level of inline function expansion. Inlining procedures can greatly improve the run-time performance of certain programs.

Option

Description

-inline-level=0 or Ob0

Disables inlining of user-defined functions. Note that statement functions are always inlined.

-inline-level=1 or Ob1

Enables inlining when an inline keyword or an inline attribute is specified. Also enables inlining according to the C++ language.

-inline-level=2 or Ob2

Enables inlining of any function at the compiler's discretion.

Alternate Options

Linux: -Ob (this is a deprecated option)

Mac OS X: None

Windows: None

See Also

Submit feedback on this help topic

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