3-1
Optimizing Your Code
The compiler tools include an optimization program that improves the
execution speed and reduces the size of C programs by performing such tasks
as simplifying loops, software pipelining, rearranging statements and expres-
sions, and allocating variables into registers.
This chapter describes how to invoke the optimizer and describes which opti-
mizations are performed when you use it. This chapter also describes how you
can use the interlist utility with the optimizer and how you can profile or debug
optimized code.
Topic
Page
Using the C Compiler Optimizer
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Using the
−
o3 Option
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Performing Program-Level Optimization
(
−
pm and
−
o3 Options)
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Special Considerations When Using the Optimizer
Automatic Inline Expansion (
−
oi Option)
. . . . . . . . . . . . . . . . . . . . . . .
Using the Interlist Utility With the Optimizer
. . . . . . . . . . . . . . . . . . . .
Debugging Optimized Code
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
What Kind of Optimization Is Being Performed?
. . . . . . . . . . . . . . . .
Chapter 3
Summary of Contents for TMS320C2x
Page 8: ...viii...
Page 69: ...2 47 C Compiler Description...
Page 159: ...6 36...
Page 226: ...8 6...