2-1
Compiler Optimization Tutorial
This chapter walks you through the code development flow and introduces you
to compiler optimization techniques that were introduced in Chapter 1. It uses
step-by-step instructions and code examples to show you how to use the soft-
ware development tools in each phase of development.
Before you start this tutorial, you should install Code Composer Studio.
The sample code that is used in this tutorial is included on the code generation
tools and Code Composer Studio CD-ROM. When you install your code gen-
eration tools, the example code is installed in c:\ti\tutorial\sim62xx\optimiz-
ing_c. Use the code in that directory to go through the examples in this chapter.
The examples in this chapter were run on the most recent version of the soft-
ware development tools that were available as of the publication of this book.
Because the tools are being continuously improved, you may get different re-
sults if you are using a more recent version of the tools.
Topic
Page
2.1
Introduction: Simple C Tuning
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2.2
Lesson 1: Loop Carry Path From Memory Pointers
. . . . . . . . . . . . . .
2.3
Lesson 2: Balancing Resources With Dual-Data Paths
. . . . . . . . . .
2.4
Lesson 3: Packed Data Optimization of Memory Bandwidth
. . . . .
2.5
Lesson 4: Program Level Optimization
. . . . . . . . . . . . . . . . . . . . . . . . .
2.6
Lesson 5: Writing Linear Assembly
. . . . . . . . . . . . . . . . . . . . . . . . . . . .
Chapter 2