# inline-max-total-size, Qinline-max-total-size

Specifies how much larger a routine can normally grow when inline expansion is performed.

## Syntax

Linux: | -inline-max-total-size=n -no-inline-max-total-size

macOS: | -inline-max-total-size=n -no-inline-max-total-size

Windows: | /Qinline-max-total-size=n /Qinline-max-total-size-

## Arguments

n | Is a positive integer that specifies the permitted increase in the routine's size when inline expansion is performed.

## Default

-no-inline-max-total-size or /Qinline-max-total-size- | The compiler uses default heuristics for inline routine expansion.

## Description

This option specifies how much larger a routine can normally grow when inline expansion is performed. It limits the potential size of the routine. For example, if 2000 is specified for n, the size of any routine will normally not increase by more than 2000.

If you specify -no-inline-max-total-size (Linux* and macOS*) or /Qinline-max-total-size- (Windows*), there is no limit to the size a routine may grow when inline expansion is performed.

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

### CAUTION

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.

## IDE Equivalent

None

## Alternate Options

None

Parent topic: Inlining Options

## See Also

inline-factor, Qinline-factor compiler option
qopt-report, Qopt-report compiler option