Directives Summary
4-2
4.1
Directives Summary
This section summarizes the assembler directives.
Besides the assembler directives documented here, the TMS320C54x
software tools support the following directives:
-
The assembler uses several directives for macros. The macro directives
are listed in this chapter, but they are described in detail in Chapter 5,
Macro Language.
-
The absolute lister also uses directives. Absolute listing directives are not
entered by the user but are inserted into the source program by the
absolute lister. Chapter 8,
Absolute Lister Description, discusses these
directives; they are not discussed in this chapter.
-
The C compiler uses directives for symbolic debugging. Unlike other
directives, symbolic debugging directives are not used in most assembly
language programs. Appendix B,
Symbolic Debugging Directives,
discusses these directives; they are not discussed in this chapter.
Note:
Labels and Comments in Syntax
Any source statement that contains a directive may also contain a label and
a comment. Labels begin in the first column (they are the only elements, ex-
cept comments, that can appear in the first column), and comments must be
preceded by a semicolon or an asterisk if the comment is the only statement
on the line. To improve readability, labels and comments are not shown as
part of the directive syntax.
Table 4–1. Assembler Directives Summary
(a) Directives that define sections
Mnemonic and Syntax
Description
Page
.bss
symbol, size in words [, blocking]
[,
alignment ]
Reserve
size words in the .bss (uninitialized data)
section
.clink [”
section name”]
Enables conditional linking for the current or specified
section
.data
Assemble into the .data (initialized data) section
.sect ”
section name”
Assemble into a named (initialized) section
.text
Assemble into the .text (executable code) section
symbol .usect ”section name”, size in words
[, blocking] [,alignment flag]
Reserve
size words in a named (uninitialized) section
Summary of Contents for TMS320C54x
Page 38: ......
Page 39: ......
Page 40: ......
Page 41: ......
Page 42: ......
Page 43: ......
Page 44: ......
Page 45: ......
Page 46: ......
Page 47: ......
Page 48: ......
Page 49: ......
Page 50: ......
Page 51: ......
Page 52: ......
Page 53: ......
Page 54: ......
Page 55: ......
Page 56: ......
Page 57: ......
Page 58: ......
Page 59: ......
Page 60: ......
Page 61: ......
Page 62: ......
Page 276: ......
Page 277: ......
Page 278: ......
Page 279: ......
Page 280: ......
Page 281: ......
Page 282: ......
Page 283: ......
Page 284: ......
Page 285: ......
Page 286: ......
Page 287: ......
Page 288: ......
Page 289: ......
Page 290: ......
Page 291: ......
Page 292: ......
Page 293: ......
Page 294: ......
Page 295: ......
Page 296: ......
Page 297: ......
Page 298: ......
Page 299: ......
Page 300: ......
Page 301: ......
Page 302: ......