SPNU118Z September 1995 – March 2023 66AK2E05 , 66AK2H06 , 66AK2H12 , 66AK2H14 , AM1705 , AM1707 , AM1802 , AM1806 , AM1808 , AM1810 , AM5K2E04 , OMAP-L132 , OMAP-L137 , OMAP-L138 , SM470R1B1M-HT , TMS470R1A288 , TMS470R1A384 , TMS470R1A64 , TMS470R1B1M , TMS470R1B512 , TMS470R1B768
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 4.3) 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
.TI_ARM 00000001 0
.TI_ARM_16BIS 00000000 0
.TI_ARM_32BIS 00000001 0
.TI_ARM_BIG 00000001 0
.TI_ARM_LITTLE 00000000 0
.ti_arm 00000001 0
.ti_arm_16bis 00000000 0
.ti_arm_32bis 00000001 0
.ti_arm_big 00000001 0
.ti_arm_little 00000000 0
STACKSIZE 00000200 9 10 63
__stack 00000000- 10 5 62
dispatch REF 29 60
reset 00000000' 34 16 19 30
stack 00000024' 62 52
stacksz 00000028' 63 54
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 ARM Optimizing C/C++ Compiler User's Guide