beautypg.com

9 cross reference file – Epson S5U1C62000A User Manual

Page 111

background image

S5U1C62000A MANUAL

EPSON

99

(S1C60/62 FAMILY ASSEMBLER PACKAGE)

CHAPTER 6: LINKER

6.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 .xrf. (The is the same as that of the
output object file.)

Sample cross reference file

Linker 62 ver x.xx Cross reference file "TEST.XRF" Sun May 03 14:16:16 1998

Label "RAM_BLK1" at 0x000 "MAIN.O" BSS, Global

0x0200 "SUB.O" CODE
0x0202 "SUB.O" CODE
0x0206 "SUB.O" CODE
0x0208 "SUB.O" CODE

Label "BOOT" at 0x0100 "MAIN.O" CODE, Local

Label "LOOP" at 0x0106 "MAIN.O" CODE, Local

0x0108 "MAIN.O" CODE

Label "INIT_RAM_BLK1" at 0x0200 "SUB.O" CODE, Global

0x0105 "MAIN.O" CODE

Label "INC_RAM_BLK1" at 0x0206 "SUB.O" CODE, Global

0x0107 "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.