SPRU514Z July 2001 – October 2023 SM320F28335-EP
The inline keyword causes a function to be expanded inline at the point where it is called rather than using standard calling procedures. The compiler performs inline expansion of functions declared with the inline keyword.
You must invoke the optimizer with any --opt_level option to turn on definition-controlled inlining. Automatic inlining is also turned on when using --opt_level=3.
Example2-1 uses the inline keyword. The function call is replaced by the code in the called function.