Specifies the maximum number of times inlining may be applied to an entire compilation unit.
None
IA-32 architecture, Intel® 64 architecture, IA-64 architecture
Linux and Mac OS: | -inline-max-per-compile=n -no-inline-max-per-compile |
Windows: | /Qinline-max-per-compile=n /Qinline-max-per-compile- |
n | Is a positive integer that specifies the number of times inlining may be applied. |
-no-inline-max-per-compile
or /Qinline-max-per-compile- |
The compiler uses default heuristics for inline routine expansion. |
This option the maximum number of times inlining may be applied to an entire compilation unit. It limits the number of times that inlining can be applied.
For compilations using Interprocedural Optimizations (IPO), the entire compilation is a compilation unit. For other compilations, a compilation unit is a file.
If you specify -no-inline-max-per-compile (Linux and Mac OS) or /Qinline-max-per-compile- (Windows), there is no limit to the number of times inlining may be applied to a compilation unit.
To see compiler values for important inlining limits, specify compiler option -opt-report (Linux and Mac OS) or /Qopt-report (Windows).
When you use this option to increase the default limit, the compiler may do so much additional inlining that it runs out of memory and terminates with an "out of memory" message.
None
inline-factor, Qinline-factor compiler option
opt-report, Qopt-report compiler option
Optimizing Applications:
Compiler Directed Inline Expansion of User Functions
Developer Directed Inline Expansion of User Functions