Developer Guide and Reference

Contents

inline-level, Ob

Specifies the level of inline function expansion.

Syntax

Linux and macOS:
-inline-level
=
n
Windows:
/Ob
n
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* and
macOS*
)
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
None

Product and Performance Information

1

Intel's compilers may or may not optimize to the same degree for non-Intel microprocessors for optimizations that are not unique to Intel microprocessors. These optimizations include SSE2, SSE3, and SSSE3 instruction sets and other optimizations. Intel does not guarantee the availability, functionality, or effectiveness of any optimization on microprocessors not manufactured by Intel. Microprocessor-dependent optimizations in this product are intended for use with Intel microprocessors. Certain optimizations not specific to Intel microarchitecture are reserved for Intel microprocessors. Please refer to the applicable product User and Reference Guides for more information regarding the specific instruction sets covered by this notice.

Notice revision #20110804