Texas Instruments TMS320C2x User Manual page 12

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

Advertisement

Contents
6
Contains technical information on how the compiler uses the TMS320C2x/C2xx/C5x architec-
ture. Discusses memory and register conventions, stack organization, function-call conven-
tions, system initialization, and TMS320C2x/C2xx/C5x C compiler optimizations. Provides in-
formation needed for interfacing assembly language to C programs.
6.1
Memory Model
6.1.1
Sections
6.1.2
6.1.3
6.1.4
6.1.5
6.1.6
Allocating Memory for Static and Global Variables
6.1.7
6.1.8
Character String Constants
6.2
Register Conventions
6.2.1
Status Register Fields
6.2.2
Stack Pointer, Frame Pointer, and Local Variable Pointer
6.2.3
6.2.4
6.2.5
6.2.6
Return Values
6.3
Function Structure and Calling Conventions
6.3.1
6.3.2
How a Called Function Responds
6.3.3
6.3.4
6.4
Interfacing C with Assembly Language
6.4.1
Using Assembly Language Modules With C Code
6.4.2
6.4.3
6.4.4
6.5
Interrupt Handling
6.5.1
General Points About Interrupts
6.5.2
6.5.3
6.5.4
TMS320C5x Shadow Register Capability
6.6
Integer Expression Analysis
6.6.1
Arithmetic Overflow and Underflow
6.6.2
Integer Division and Modulus
6.6.3
Long (32-Bit) Expression Analysis
6.6.4
6.7
Floating-Point Expression Analysis
xii
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . .
6-1
6-2
6-3
6-4
6-5
6-6
6-7
6-7
6-8
6-8
6-9
6-11
6-11
6-12
6-12
6-13
6-13
6-14
6-15
6-15
6-16
6-18
6-19
6-19
6-22
6-23
6-24
6-25
6-25
6-26
6-27
6-27
6-28
6-28
6-28
6-28
6-29
6-30

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?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Tms320c2xxTms320c5x

Table of Contents