| Cray C/C++ Reference Manual | ||
|---|---|---|
| Prev Section | Chapter 2. Compiler Commands | Next Section |
The following sections describe inline optimization options.
| Default option: | -h inline1 |
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:
The -h inlinefrom=file option specifies inline code expansion of all functions defined in file by the C++ compiler. For the file argument, enter the name of a file that contains one or more functions or enter the name of a directory that contains one or more source files.
Every function defined in the file or directory is inlined unless the call is within the scope of a #pragma _CRI noinline directive.
| Prev Section | Table of Contents | Title Page | Next Section |
| Optimization (Task) | Up one level | Optimization (Scalar) |