Using Inline Function Expansion
2-30
For a function to be eligible for inlining:
-
The function must be declared with the inline keyword, or
-
The optimizer must be invoked using the
−
o3 switch, and
J
The function is very small (controlled by the
−
oi switch), and
J
The function is declared before it is called
A function may be disqualified from inlining if it:
-
Returns a struct or union
-
Has a struct or union parameter
-
Has a volatile parameter
-
Has a variable length argument list
-
Declares a struct, union, or enum type
-
Contains a static variable
-
Contains a volatile variable
-
Is recursive
-
Contains # pragmas
-
Has too large of a stack (too many local variables)
Summary of Contents for TMS320C2x
Page 8: ...viii...
Page 69: ...2 47 C Compiler Description...
Page 159: ...6 36...
Page 226: ...8 6...