beautypg.com

1 functions, 2 input/output files, 1 input files – Epson S5U1C63000A User Manual

Page 103: Messages, Linker command file, Link map file, Chapter, Inker

background image

CHAPTER 5: LINKER

S5U1C63000A MANUAL

EPSON

89

(S1C63 FAMILY ASSEMBLER PACKAGE)

CHAPTER

5 L

INKER

This chapter describes the functions of the linker, lk63.

5.1 Functions

The linker lk63 is a software that generates executable object files. It provides the following functions:

• Puts together multiple object modules to create one executable object file.
• Resolves external reference from one module to another.
• Relocates relative addresses to absolute addresses.
• Delivers debugging information, such as line numbers and symbol information, in the object file

created after linking.

• Capable of outputting a link map file, symbol file, absolute list file and a cross reference file.
• Automatic page correction function (insertion/removal/correction of the "ldb %ext, imm8" branch

extension instruction) for branch instructions.

5.2 Input/Output Files

Linker

lk63

file.o

Relocatable

object file(s)

Linker

command file

file.sym

file.xrf

file.cm

ICE

parameter file

file.par

file.abs

Absolute

object file

Cross

reference file

file.als

Absolute

list file

file.map

Link

map file

Symbol

file

Error file

lk63.err

to Debugger

from Assembler

Fig. 5.2.1 Flow chart

5.2.1 Input Files

Relocatable object file

This file must always be specified in either a command line or a link command file.

File format: Binary file in IEEE-695 format

File name: .o

(A path can also be specified.)

Description: Object file of individual modules created by the assembler.

Linker command file

File format: Text file

File name: .cm

(A path can also be specified.)

Description: File to specify the linker options. This makes it possible to reduce typing in a command

line. This file is dispensable if all start-up options can be input in a command line.

ICE parameter file

This file must always be specified in either a command line or a link command file.

File format: Binary file

File name: .par

(A path can also be specified.)

Description: File to specify the memory mapping and unsupported instruction information of each

S1C63 Family model. This file is provided for each model and commonly used with the
debugger and HEX converter.