ILE C/C++ Compiler Reference


inline



>>-#--pragma--inline--(--function_name--)----------------------><
 
 

Description

The #pragma inline directive specifies that function_name is to be inlined. The pragma can appear anywhere in the source, but must be at file scope. The pragma has no effect if the INLINE(*ON) parameter is not specified on the Create Module or Create Bound Program commands. If #pragma inline is specified for a function, the inliner will force the function specified to be inlined on every call. The function will be inlined in both selective (*NOAUTO) and automatic (*AUTO) INLINE mode.

Inlining replaces function calls with the actual code of the function. It reduces function call overhead, and exposes more code to the optimizer, allowing more opportunities for optimization.

Notes on Usage

See the "Function Call Performance" in the WebSphere Development Studio: ILE C/C++ Programmer's Guide for more information on function inlining.


[ Top of Page | Previous Page | Next Page | Table of Contents ]