Purpose Of This Chapter - Panasonic PanaXSeries MN1030 Series User Manual

Panasonic microcomputer user's manual
Table of Contents

Advertisement

Chapter 6 Using Linker
6.1

Purpose of This Chapter

This chapter explains how to use all the options provided by the linker. The linker reads relocatable
object files output by the assembler, outputs an executable format file, and if specified by option
outputs a map file containing link information. If optimization was specified at the assembly stage, the
linker will also adjust code such that it outputs optimal code for conditional and unconditional branch
instructions. In addition, the linker also resolves forward references.
For programs in section address format, the start address of each section is specified when linking. The
linker links relocatable object files by section in the order specified by the link command, and outputs
an executable format file.
PROGRAM1.RF
PROGRAM2.RF
PROGRAM3.RF
84 Purpose of This Chapter
Relocatable Object Files
sectionA
sectionB
sectionC
sectionB
sectionB
sectionA
Figure: 6-1 Link Model of Section Address Format
0x00000000
Start Addresses
sectionA=0x00000000
sectionB=0x00000000
sectionC=0x00000000
0x40000000
Linker
0x80000000
Executable Format File
sectionA
PROGRAM1
sectionA
PROGRAM3
sectionB
PROGRAM1
sectionB
PROGRAM2
sectionB
PROGRAM3
sectionC
PROGRAM2

Advertisement

Table of Contents
loading

Table of Contents