SPRU514Y August 2001 – June 2022
The TMS320C28x C/C++ compiler uses a variety of optimization techniques to improve the execution speed of your C/C++ programs and to reduce their size. Following are some of the optimizations performed by the compiler:
Optimization | See |
---|---|
Cost-based register allocation | Section 4.17.1 |
Alias disambiguation | Section 4.17.1 |
Branch optimizations and control-flow simplification | Section 4.17.3 |
Data flow optimizations
| Section 4.17.4 |
Expression simplification | Section 4.17.5 |
Inline expansion of functions | Section 4.17.6 |
Function Symbol Aliasing | Section 4.17.7 |
Induction variable optimizations and strength reduction | Section 4.17.8 |
Loop-invariant code motion | Section 4.17.9 |
Loop rotation | Section 4.17.10 |
Instruction scheduling | Section 4.17.11 |
C28x-Specific Optimization | See |
---|---|
Register variables | Section 4.17.12 |
Register tracking/targeting | Section 4.17.13 |
Tail merging | Section 4.17.14 |
Autoincrement addressing | Section 4.17.15 |
Removing comparisons to zero | Section 4.17.16 |
RPTB generation (for FPU targets only) | Section 4.17.17 |