SPRUI03E June 2015 – January 2023
A cross-reference listing shows symbols and their definitions. To obtain a cross-reference listing, invoke the assembler with the --asm_cross_reference_listing option (see Section 5.4) or use the .option directive with the X operand (see Select Listing Options). The assembler appends the cross-reference to the end of the source listing. The following example shows the four fields contained in the cross-reference listing.
LABEL VALUE DEFN REF
.BIG_ENDIAN 00000000 0
.LITTLE_ENDIAN 00000001 0
.TMS320C6400_PLUS 00000001 0
.TMS320C6600 00000000 0
.TMS320C6740 00000001 0
_func 00000000' 18
var1 00000000- 4 17
var2 00000004- 5 18
Label | column contains each symbol that was defined or referenced during the assembly. |
Value | column contains an 8-digit hexadecimal number (which is the value assigned to the symbol) or a name that describes the symbol's attributes. A value may also be preceded by a character that describes the symbol's attributes. The following table lists these characters and names. |
Definition | (DEFN) column contains the statement number that defines the symbol. This column is blank for undefined symbols. |
Reference | (REF) column lists the line numbers of statements that reference the symbol. A blank in this column indicates that the symbol was never used. |
Character or Name | Meaning | |
---|---|---|
REF | External reference (global symbol) | |
UNDF | Undefined | |
' | Symbol defined in a .text section | |
" | Symbol defined in a .data section | |
+ | Symbol defined in a .sect section | |
- | Symbol defined in a .bss or .usect section |
The compiler also provides a similar --gen_cross_reference_listing option, which generates a listing file containing reference information for identifiers in C/C++ source files. See the "Generating Cross-Reference Listing Information" section in the TMS320C6000 Optimizing C/C++ Compiler User's Guide