Sign In
Upload
Manuals
Brands
Texas Instruments Manuals
Signal Processors
TMS320C5x
Texas Instruments TMS320C5x Processors Manuals
Manuals and User Guides for Texas Instruments TMS320C5x Processors. We have
1
Texas Instruments TMS320C5x Processors manual available for free PDF download: User Manual
Texas Instruments TMS320C5x User Manual (250 pages)
Optimizing C Compiler Digital Signal Processor
Brand:
Texas Instruments
| Category:
Signal Processors
| Size: 1 MB
Table of Contents
Table of Contents
9
Introduction
17
Software Development Tools Overview
18
Tms320C2X/C2Xx/C5X Software Development Flow
18
C Compiler Overview
21
C Compiler Description
23
About the Shell Program
24
The Shell Program Overview
25
Invoking the Compiler Shell
26
Changing the Compiler's Behavior with Options
28
Shell Options Summary
29
Frequently Used Options
36
Specifying Filenames
38
Changing How the Shell Program Interprets Filenames
38
Options)
38
Changing How the Shell Program Interprets and Names Extensions
39
Changing How the Shell Program Interprets and Names Extensions (−Ea and −Eo Options)
39
Specifying Directories
39
Options that Overlook ANSI C Type Checking
40
Runtime-Model Options
41
Options that Control the Assembler
42
Changing the Compiler's Behavior with Environment Variables
43
Specifying a Temporary File Directory (TMP)
44
Controlling the Preprocessor
45
Predefined Macro Names
45
The Search Path for #Include Files
46
Changing the #Include File Search Path with the − I Option
47
Generating a Preprocessed Listing File (− Pl Option)
48
Creating Custom Error Messages with the #Error and #Warn Directives
49
Using Inline Function Expansion
50
Controlling Inline Function Expansion (−X Option)
51
The _INLINE Preprocessor Symbol
54
How the Runtime-Support Library Uses the _INLINE Preprocessor Symbol
55
Using the Interlist Utility
56
An Interlisted Assembly Language File
57
Understanding and Handling Compiler Errors
58
Example Error Messages
59
Generating an Error Listing (−Pr Option)
59
Selecting a Level for the −Pw Option
60
An Example of How You Can Use Error Options
60
Compiler Overview
61
Invoking the Tools Individually
61
Invoking the Parser
62
Parser Options and Dspcl Options
63
Parsing in Two Passes
64
Optimizer Options and Dspcl Options
65
Invoking the Code Generator
66
Code Generator Options and Dspcl Options
67
Invoking the Interlist Utility
68
Chapter 3 Optimizing Your Code
70
Optimizing Your Code
70
Compiling a C Program with the Optimizer
71
Mizer 3.1 Using the C Compiler Optimizer
71
Using the C Compiler Optimizer
72
Options that You Can Use with −O3
73
Selecting a Level for the −Ol Option
73
Using the −O3 Option
73
Selecting a Level for the −On Option
74
Creating an Optimization Information File (−Onn Option)
74
Performing Program-Level Optimization (−Pm and −O3 Options)
75
Selecting a Level for the −Op Option
76
Special Considerations When Using the −Op Option
76
Optimization Considerations When Mixing C and Assembly
77
Naming the Program Compilation Output File (−Px Option)
78
Special Considerations When Using the Optimizer
79
Use Caution When Accessing Aliased Variables
80
Automatic Inline Expansion (−Oi Option)
81
Using the Interlist Utility with the Optimizer
82
Debugging Optimized Code
82
What Kind of Optimization Is Being Performed
83
Cost-Based Register Allocation
84
Delays, Banches, Calls, and Returns
85
Delayed Branch, Call, and Return Instructions
86
Algebraic Reordering / Symbolic Simplification / Constant Folding
87
Data-Flow Optimizations
88
Branch Optimizations and Control-Flow Simplification
89
Loop Induction Variable Optimizations and Strength Reduction
90
Inline Function Expansion
91
Linking C Code
92
Run-Time-Support Source Libraries
93
Invoking the Linker with the Compiler Shell (−Z Option)
95
Disabling the Linker (−C Shell Option)
96
Linker Options
97
Controlling the Linking Process
99
Specifying the Type of Initialization
100
Sections Created by the Compiler
102
Specifying Where to Allocate Sections in Memory
102
A Sample Linker Command File
104
Tms320C2X/C2Xx/C5X C Language
106
Identifiers and Constants
107
Expressions
108
Data Types
109
Tms320C2X/C2Xx/C5X C Data Types
110
Register Variables
111
Pragma Directives
112
The DATA_SECTION Pragma
113
The Asm Statement
114
Creating Global Register Variables
115
Avoiding Corrupting Register Values
116
Initializing Static and Global Variables
117
Accessing I/O Port Space
118
Compatibility with K&R C
119
Compiler Limits
121
Absolute Compiler Limits
122
Chapter 6 Run-Time Environment
124
Runtime Environment
124
Memory Model
125
Sections
126
C System Stack
127
Allocating .Const to Program Memory
128
Dynamic Memory Allocation
129
Initialization of Variables
130
Field/Structure Alignment
131
Register Conventions
132
Register Use and Preservation Conventions
133
Status Register Fields
134
The Tms320C5X INDX Register
135
Expression Registers
136
Stack Use During a Function Call
137
Function Structure and Calling Conventions
137
How a Function Makes a Call
138
Special Cases for a Called Function
139
Accessing Arguments and Local Variables
141
Interfacing C with Assembly Language
142
An Assembly Language Function
144
Using Inline Assembly Language
145
Accessing Assembly Language Variables from C Code
146
Modifying Compiler Output
147
Interrupt Handling
148
Using C Interrupt Routines
149
Using Assembly Language Interrupt Routines
150
Integer Expression Analysis
151
C Code Access to the Upper 16 Bits of 16-Bit Multiply
152
Floating-Point Expression Analysis
153
System Initialization
154
Runtime Stack
155
Format of Initialization Records in the .Cinit Section
156
Initialization Tables
156
Autoinitialization at Run Time
157
Autoinitialization of Variables at Runtime
157
Initialization at Load Time
158
Runtime-Support Functions
160
Libraries
161
Modifying a Library Function
162
Header Files
163
Diagnostic Messages (Assert.h)
164
Macros that Supply Integer Type Range Limits (Limits.h)
165
Error Reporting (Errno.h )
165
Macros that Supply Floating-Point Range Limits (Float.h)
166
Inport/Outport Macros (Ioports.h)
167
Floating-Point Math (Math.h )
168
Standard Definitions (Stddef.h )
169
String Functions (String.h )
170
Customizing Time Functions
171
Summary of Run-Time-Support Functions and Macros
172
Writing Your Own Clock Function
187
Writing Your Own Time Function
217
Library-Build Utility
221
Invoking the Library-Build Utility
222
Library-Build Utility Options
223
Summary of Options and Their Effects
224
A Glossary
227
Tms320C2X/C2Xx/C5X Byte Is 16 Bits
228
Advertisement
Advertisement
Related Products
Texas Instruments TMS320C54x
Texas Instruments TMS320C6722
Texas Instruments TMS320C6713
Texas Instruments TMS320C6201
Texas Instruments TMS320C2810
Texas Instruments TMS320C2811
Texas Instruments TMS320C6670
Texas Instruments TMS320C62 Series
Texas Instruments TMS320C5 Series
Texas Instruments TMS320C55 Series
Texas Instruments Categories
Motherboard
Control Unit
Microcontrollers
Computer Hardware
Calculator
More Texas Instruments Manuals
Login
Sign In
OR
Sign in with Facebook
Sign in with Google
Upload manual
Upload from disk
Upload from URL