Controlling Inline Expansion of User Functions

The compiler enables you to control the amount of inline function expansion, with the options shown in the following summary.

Windows*

Linux*

Effect

/Ob

-Ob

Controls inline expansion.

For more information, see the following topic:

  • -Ob compiler option

-inline

/inline

Controls the level of inline function expansion.

For more information, see the following topic:

/Qip-no-inlining

-ip-no-inlining

Useful if -ip (Linux*) or /Qip (Windows*) or -ipo (Linux) or /Qipo (Windows) is also specified. In such cases, this option disables inlining that would result from the -ip (Linux) or /Qip (Windows) or -Ob2 (Linux) or /Ob2 (Windows) interprocedural optimizations, but has no effect on other interprocedural optimizations.

For more information, see the following topic:

/Qinline-debug-info

-inline-debug-info

Keeps source information for inlined functions.

For more information, see the following topic:

/Qip-no-pinlining

-ip-no-pinlining

Disables partial inlining; can be used if -ip (Linux) or /Qip (Windows) or -ipo (Linux) or /Qipo (Windows) is also specified.

For more information, see the following topic: