
What Kind of Optimization Is Being Performed?
3-14
3.8 What Kind of Optimization Is Being Performed?
The TMS320C2x/C2xx/C5x C compiler uses a variety of optimization tech-
niques to improve the execution speed of your C programs and to reduce their
size. Optimization occurs at various levels throughout the compiler.
Most of the optimizations described here are performed by the separate op-
timizer pass that you enable and control with the
−
o compiler options (see sec-
Using the Compiler Optimizer
, on page 3-2). However, the code gen-
erator performs some optimizations, which you cannot selectively enable or
disable.
Following are the optimizations performed by the compiler. These optimiza-
tions improve any C code:
Optimizations
Page
Cost-based register allocation
Autoincrement addressing
Repeat Blocks
Delays, branches, calls, and returns
Algebraic reordering, symbolic simplification, constant folding 3-18
Alias disambiguation
Data flow optimizations
-
Copy propagation
-
Common subexpression elimination
-
Redundant assignment elimination
Branch optimizations and control-flow simplification
Loop induction variable optimizations and strength reduction
Loop rotation
Loop-invariant code motion
Inline expansion of run-time-support library functions
Содержание 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...