SLAU132Y September 2004 – June 2021
The MSP430 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.14.1 |
Alias disambiguation | Section 4.14.1 |
Branch optimizations and control-flow simplification | Section 4.14.3 |
Data flow optimizations
| Section 4.14.4 |
Expression simplification | Section 4.14.5 |
Inline expansion of functions | Section 4.14.6 |
Function Symbol Aliasing | Section 4.14.7 |
Induction variable optimizations and strength reduction | Section 4.14.8 |
Loop-invariant code motion | Section 4.14.9 |
Loop rotation | Section 4.14.10 |
Instruction scheduling | Section 4.14.11 |
MSP430-Specific Optimization | See |
---|---|
Tail merging | Section 4.14.12 |
Integer division with constant divisor | Section 4.14.13 |