Ob

Specifies the level of inline function expansion.

IDE Equivalent

Windows: Optimization > Inline Function Expansion
Linux: None

Architectures

IA-32, IntelŪ EM64T, IntelŪ ItaniumŪ architecture

Syntax

Linux: -Obn
Windows:  /Obn

Arguments

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

Default

Ob2

If option O2 is specified or is in effect by default.

Ob0

If option -O0 (Linux) or /Od (Windows) is specified

Description

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

Option

Description

Ob0 Disables inlining of user-defined functions. Fortran statement functions are always inlined.
Ob1 Enables inlining of functions if option Qip or Ob2 is specified, but expands only INLINE directives.
Ob2 Enables inlining of any function. However, the compiler decides which functions are inlined. This option enables interprocedural optimizations and has the same effect as specifying option Qip.

Alternate Options

None

See Also

inline compiler option