Intel® C++ Compiler Classic Developer Guide and Reference

ID 767249
Date 7/13/2023
Public
Document Table of Contents

inline-factor, Qinline-factor

Specifies the percentage multiplier that should be applied to all inlining options that define upper limits.

Syntax

Linux:

-inline-factor=n

-no-inline-factor

macOS:

-inline-factor=n

-no-inline-factor

Windows:

/Qinline-factor:n

/Qinline-factor-

Arguments

n

Is a positive integer specifying the percentage value. The default value is 100 (a factor of 1).

Default

-inline-factor=100
or /Qinline-factor:100

The compiler uses a percentage multiplier of 100.

Description

This option specifies the percentage multiplier that should be applied to all inlining options that define upper limits:

  • [Q]inline-max-size

  • [Q]inline-max-total-size

  • [Q]inline-max-per-routine

  • [Q]inline-max-per-compile

The [Q]inline-factor option takes the default value for each of the above options and multiplies it by n divided by 100. For example, if 200 is specified, all inlining options that define upper limits are multiplied by a factor of 2. This option is useful if you do not want to individually increase each option limit.

If you specify -no-inline-factor (Linux* and macOS) or /Qinline-factor- (Windows*), the following occurs:

  • Every function is considered to be a small or medium function; there are no large functions.

  • There is no limit to the size a routine may grow when inline expansion is performed.

  • There is no limit to the number of times some routine may be inlined into a particular routine.

  • There is no limit to the number of times inlining can be applied to a compilation unit.

To see compiler values for important inlining limits, specify option [q or Q]opt-report.

CAUTION:

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

IDE Equivalent

None

Alternate Options

None