Technical data
Cray Standard C/C++ Reference Manual
(UNICOS systems) The -h [no]threshold option enables or disables
generation of run-time threshold testing for autotasked loops. Aggressive
Autotasking (-h task3) must also be specified for this option to take effect.
2.12 Inlining Optimization Options
The following sections describe inlining options.
2.12.1 -h inlinen (CC, cc)
Default option: -h inline2
The -h inlinen option specifies the level of inlining to be performed. Inlining
eliminates the overhead of a function call and increases the opportunities for
other optimizations. Inlining can also increase object code size. Inlining directives
and the inline keyword are unaffected by this option.
Following are the values for the n argument:
n
Description
0 No inlining is performed.
1 Conservative inlining. Inlining is performed on functions explicitly
marked by one of the following:
• The inline keyword (Cray Standard C++).
• A #pragma _CRI inline directive (Cray Standard C and
C++).
Inlining is also performed on functions defined inside a class
definition (Cray Standard C++).
2 Moderate automatic inlining. Includes level 1 plus some automatic
inlining.
3 Aggressive automatic inlining. All functions are candidates
for inlining except those specifically marked with a
#pragma noinline directive.
4 More aggressive automatic inlining. The inline4 optimization
level is the same as inline3, but may inline larger routines.
22 S–2179–36










