inline-forceinline, Qinline-forceinline

Specifies that an inline routine should be inlined whenever the compiler can do so.

IDE Equivalent

None

Architectures

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

Syntax

Linux and Mac OS: -inline-forceinline
Windows:  /Qinline-forceinline

Arguments

None

Default

OFF The compiler uses default heuristics for inline routine expansion.

Description

This option specifies that a inline routine should be inlined whenever the compiler can do so. This causes the routines marked with an inline keyword or directive to be treated as if they were "forceinline".

The "forceinline" condition can also be specified by using the directive cDEC$ ATTRIBUTES FORCEINLINE.

To see compiler values for important inlining limits, specify compiler option -opt-report (Linux and Mac OS) or /Qopt-report (Windows).

Caution

When you use this option to change the meaning of inline to "forceinline", the compiler may do so much additional inlining that it runs out of memory and terminates with an "out of memory" message.

Alternate Options

None

See Also

opt-report, Qopt-report compiler option

Optimizing Applications:
Compiler Directed Inline Expansion of User Functions

Developer Directed Inline Expansion of User Functions