
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.
Содержание TMS320C2x
Страница 8: ...viii...
Страница 69: ...2 47 C Compiler Description...
Страница 159: ...6 36...
Страница 226: ...8 6...
Страница 250: ...Index Index 14 Z z shell option 2 2 2 4 2 14 overriding with c option 4 5 overriding with n option 2 13...