| Syntax: | Default: |
| opt(autoInline[, yes]) opt(autoInline, no) |
opt(autoInline, no) with
opt(level, 0) opt(autoInline[, yes]) otherwise |
This option determines whether functions in your source code are candidates for inlining.
It does
not apply to functions qualified with inline in C++ source code,
which are enabled for inlining by building with the opt(inline) option.
For C
source code, setting opt(autoInline) implicitly sets opt(inline),
so this option applies to functions qualified with _Inline in C
source code.
By default, VisualAge C++ inlines functions when optimizing, and does no inlining otherwise. When you build with an optimization level greater than zero, set opt(autoInline, no) to suppress inlining. This can reduce program size, usually at the expense of performance.
This option is set to yes implicitly when you build with opt(level, level) and level has a value greater than zero.
You can also specify a threshold for automatic inlining of functions with the following options:
opt(autoInlineLimit, number) on AIX platforms
opt(autoInlineThreshold, number) on OS/2 and Windows NT platforms
Even when inlining is turned on, some candidate functions may not actually be inlined due to internal criteria applied during the compile stage.
![]()
Incremental C++ Builds
C Compilation
Configuration Files
Inlining
![]()
Set Build Options
Build
![]()
Optimize Your
Application
![]()
Optimization Options
![]()
Optimization Options
