Optimization Levels
Compiler Advanced Options
To get to these options, go to Project Build Options in Code Composer Studio.
In the category, pick
Advanced
.
The first thing to notice under advanced options is the
Auto Inlining Threshold
.
- Used with –o3 option
- Functions > size are not auto inlined
Note: To prevent code size increases when using –o3, disable auto inlining with -oi0
The next point we will cover is the
Normal Optimization with Debug (-mn)
.
- Re-enables optimizations disabled by “–g” option (symbolic debug)
- Used for maximum optimization
Note: Some symbolic debug labels will be lost when –mn option is used.
Optimizer should be invoked incrementally:
-g test
Symbols kept for debug
-g -o3 test
Add optimizer, keep symbols
-g -o3 -mn test
More optimize, some symbols
-o3 test
Final rev: Full optimize, no symbols
[-mf] : Optimize for speed instead of the default optimization for code size
[-mi] : Avoid RPT instruction. Prevent compiler from generating RPT instruction. RPT instruc-
tion is not interruptible
[-mt] : Unified memory model. Use this switch with the unified memory map of the 2810 &
2812. Allows compiler to generate the following:
-RPT PREAD for memory copy routines or structure assignments
-MAC instructions
-Improves efficiency of switch tables
D- 12
C28x – C Programming
Содержание C28 Series
Страница 64: ...Summary 3 16 C28x Peripheral Registers Header Files ...
Страница 78: ...Interrupt Sources 4 14 C28x Reset and Interrupts ...
Страница 218: ...Lab 9 DSP BIOS 9 22 C28x Using DSP BIOS ...
Страница 244: ...Lab 10 Programming the Flash 10 26 C28x System Design ...
Страница 273: ...Appendix A eZdsp F2812 C28x Appendix A eZdsp F2812 A 1 ...
Страница 275: ...Appendix eZdsp F2812 eZdsp F2812 Connector Header and Pin Diagram C28x Appendix A eZdsp F2812 A 3 ...
Страница 276: ...Appendix P2 Expansion Interface A 4 C28x Appendix A eZdsp F2812 ...
Страница 277: ...Appendix P4 P8 P7 I O Interface C28x Appendix A eZdsp F2812 A 5 ...
Страница 278: ...Appendix A 6 C28x Appendix A eZdsp F2812 ...
Страница 279: ...Appendix P5 P9 Analog Interface C28x Appendix A eZdsp F2812 A 7 ...
Страница 281: ...Appendix JP7 JP8 JP11 JP12 Boot Mode Select JP9 PLL Disable DS1 DS2 LEDs C28x Appendix A eZdsp F2812 A 9 ...
Страница 282: ...Appendix A 10 C28x Appendix A eZdsp F2812 TP1 TP2 Test Points ...