Technical data

#pragma Directives [3]
3.11.1 inline Directive
The inline directive specifies functions that are to be inlined. The inline
directive has the following format:
#pragma _CRI inline func,...
The func,... argument represents the function or functions to be inlined. The
list can be enclosed in parentheses. Listed functions must be defined in the
compilation unit. You cannot specify objects of type pointer-to-function.
The following example illustrates the use of the inline directive:
#include <stdio.h>
int f(int a) {
return a*a;
}
#pragma _CRI inline f /* Direct the compiler to inline */
/* calls to f. */
main() {
int b = 5;
printf("%d\n", f(b)); /* f is inlined here */
}
3.11.2 noinline Directive
The noinline directive specifies functions that are not to be inlined. The format
of the noinline directive is as follows:
#pragma _CRI noinline func,...
The func,... argument represents the function or functions that are not to be
inlined. The list can be enclosed in parentheses. Listed functions must be defined
in the compilation unit. You cannot specify objects of type pointer-to-function.
The following example illustrates the use of the noinline directive:
S217936 101