Using the C Compiler Optimizer
3-3
Optimizing Your Code
-
−
o3
Performs all
−
o2 optimizations, plus:
J
Removes all functions that are never called
J
Simplifies functions with return values that are never used
J
Inlines calls to small functions
J
Reorders function declarations so that the attributes of called func-
tions are known when the caller is optimized
J
Propagates arguments into function bodies when all calls pass the
same value in the same argument position
J
Identifies file-level variable characteristics
If you use
−
Using the
−
o3 Option
more information.
The levels of optimization described above are performed by the stand-alone
optimization pass. The code generator performs several additional opti-
mizations, particularly ’C6000-specific optimizations; it does so regardless of
whether or not you invoke the optimizer. These optimizations are always
enabled and are not affected by the optimization level you choose.
You can also invoke the optimizer outside dspcl; see section 2.9.3,
Invoking
the Optimizer
, on page 2-42 for information about invoking the optimizer as a
separate step.
Summary of Contents for TMS320C2x
Page 8: ...viii...
Page 69: ...2 47 C Compiler Description...
Page 159: ...6 36...
Page 226: ...8 6...