# inline

Specifies the level of inline function expansion.

## Syntax

Linux: | None

macOS: | None

Windows: | /inline[:keyword]

## Arguments

keyword | Is the level of inline function expansion. Possible values are:
none | Disables inlining of user-defined functions. This is the same as specifying manual.
manual | Disables inlining of user-defined functions. Fortran statement functions are always inlined.
size | Enables inlining of any function. However, the compiler decides which functions are inlined. This option enables interprocedural optimizations and most speed optimizations.
speed | Enables inlining of any function. This is the same as specifying all.
all | Enables inlining of any function. However, the compiler decides which functions are inlined. This option enables interprocedural optimizations and all speed optimizations. This is the same as specifying inline with no keyword.

## Default

OFF | The compiler inlines certain functions by default.

## Description

This option specifies the level of inline function expansion.

## IDE Equivalent

None

## Alternate Options

inline all or inline speed | Linux and macOS: None Windows: /Ob2/Ot
inline size | Linux and macOS: None Windows: /Ob2/Os
inline manual | Linux and macOS: None Windows: /Ob0
inline none | Linux and macOS: None Windows: /Ob0

Parent topic: Inlining Options

## See Also

finline-functions compiler option