beautypg.com

6 linker, 1 functions, 2 input/output files – Epson S5U1C62000A User Manual

Page 101: 1 input files, Chapter, Inker

background image

S5U1C62000A MANUAL

EPSON

89

(S1C60/62 FAMILY ASSEMBLER PACKAGE)

CHAPTER 6: LINKER

CHAPTER

6 L

INKER

This chapter will describe the functions of the Linker lk62.

6.1 Functions

The Linker lk62 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 pset instruction) for branch

instructions.

6.2 Input/Output Files

Linker

lk62

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

file.err

to Debugger

from Assembler

Fig. 6.2.1 Flow chart

6.2.1 Input Files

Relocatable object 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.

File format: Text file

File name: .par

(A path can also be specified.)

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

S1C62 Family model. This file is supplied in the development tools for each model and
commonly used with the debugger, HEX converter and disassembler.