CHAPTER 5: LINKER
S5U1C63000A MANUAL EPSON 99
(S1C63 FAMILY ASSEMBLER PACKAGE)
5.9 Cross Reference File
The cross reference file enumerates all the address labels with their absolute addresses and all the ad-
dresses where the address labels are referred to. It is delivered only when the -x option is specified. Its file
format is a text file, and the file name is <file name>.xrf. (The <file name> is the same as that of the
output object file.)
Sample cross reference file
Linker 63 ver x.xx Cross reference file TEST.XRF Mon Jan 15 12:40:41 2001
Label "INIT_RAM_BLK1" at 0x0000 SUB.O CODE, Global
0x0101 MAIN.O CODE
0x0115 MAIN.O CODE
Label "RAM_BLK0" at 0x000 MAIN.O BSS, Global
0x0101 MAIN.O CODE
0x0115 MAIN.O CODE
Label "RAM_BLK1" at 0x004 MAIN.O BSS, Global
0x0000 SUB.O CODE
0x0001 SUB.O CODE
0x0007 SUB.O CODE
0x0008 SUB.O CODE
Label "INC_RAM_BLK1" at 0x0007 "SUB.O" CODE, Global
0x0117 MAIN.O CODE
Label "NMI" at 0x0100 MAIN.O CODE, Local
Label "BOOT" at 0x0110 MAIN.O CODE, Local
Label "LOOP" at 0x0116 MAIN.O CODE, Local
0x0118 MAIN.O CODE
Contents of cross reference file
The format of each label information is as follows:
Label information
<Address> <File name> <Type>
Label information
Indicates the following information:
• Label name
• Defined address
• Object file in which the label is defined.
• Section type
• Scope
Address Indicates the address where the label is referred.
File Indicates the object file in which the label is referred.
Type Indicates the type of section that contains the address where the label is referred.