Texas Instruments TMS320C2x User Manual page 10

Optimizing c compiler digital signal processor
Hide thumbs Also See for TMS320C2x:
Table of Contents

Advertisement

Contents
2.6
2.6.1
Inlining Intrinsic Operators
2.6.2
Controlling Inline Function Expansion (−x Option)
2.6.3
Using the inline Keyword
2.6.4
2.7
2.8
2.8.1
Generating an Error Listing (−pr Option)
2.8.2
Treating Code-E Errors as Warnings (− pe Option)
2.8.3
Altering the Level of Warning Messages (− pw Option)
2.8.4
2.9
2.9.1
2.9.2
2.9.3
Invoking the Optimizer
2.9.4
2.9.5
3
Describes how to optimize your C code, including such features as software pipelining and loop
unrolling. Also describes the types of optimizations that are performed when you use the opti-
mizer.
3.1
Using the C Compiler Optimizer
3.2
Using the −o3 Option
3.2.1
Controlling File-Level Optimization (−oln Option)
3.2.2
Creating an Optimization Information File (−onn Option)
3.3
Performing Program-Level Optimization (−pm and −o3 Options)
3.3.1
Controlling Program-Level Optimization (−opn Option)
3.3.2
3.3.3
Naming the Program Compilation Output File (−px Option)
3.4
Special Considerations When Using the Optimizer
3.4.1
Use Caution With asm Statements in Optimized Code
3.4.2
Use Caution With the Volatile Keyword
3.4.3
3.4.4
Assume Functions Are Not Interrupts
3.5
Automatic Inline Expansion (−oi Option)
3.6
Using the Interlist Utility With the Optimizer
3.7
Debugging Optimized Code
3.8
What Kind of Optimization Is Being Performed?
3.8.1
3.8.2
Autoincrement Addressing
3.8.3
Repeat Blocks
3.8.4
3.8.5
3.8.6
Alias Disambiguation
x
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . .
. . . . . . . .
2-27
2-27
2-28
2-28
2-31
2-33
2-35
2-36
2-36
2-36
2-37
2-38
2-39
2-41
2-41
2-43
2-45
3-1
3-2
3-4
3-4
3-5
3-6
3-6
3-8
3-9
3-10
3-10
3-10
3-11
3-11
3-12
3-13
3-13
3-14
3-15
3-15
3-15
3-16
3-18
3-18

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the TMS320C2x and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Tms320c2xxTms320c5x

Table of Contents