SLAU131Y October 2004 – June 2021
A cross-reference listing shows symbols and their definitions. To obtain a cross-reference listing, invoke the assembler with the --asm_listing_cross_reference 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
.MSP430 0001 0
.msp430 0001 0
addfive 0000' 6 3
svar REF 1 7 8
| 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 |