B.42 Function Inline Expansion

Function inline expansion eliminates procedure-call overhead and allows general optimization methods to apply across the expanded code. Function inlining has advantages over macros in that arguments are evaluated only once, parentheses need not be overused to avoid problems with precedence, and the actual expansion can be controlled from the command line.

The following pragmas are provided to control function inline expansion:

#pragma inline (function_name [,function_name....])
#pragma noinline (function_name [,function_name....])

If a function is named in an inline directive, calls to it are expanded as inline code, if the function has the following properties:

Inline functions have the following properties:


Previous Page | Next Page | Table of Contents | Index