Outputting omf files, Using the linker with the c-compiler, Igure – Zilog Z80380 User Manual
Page 53: Inker, Components

UM004001-COR1103
3–3
Linking Files
Using the Linker with the C-compiler
Outputting OMF Files
Depending upon the options specified by the user, the linker can produce two types of OMF
files:
•
Intel Hex Format Executable File
•
COFF Format Executable File
USING THE LINKER WITH THE C-COMPILER
The linker is used to link compiled and assembled object files, C-Compiler libraries, user
created libraries and C runtime initialization files. These files are linked according to the
commands that are given in the linker command file. Once the files are linked an executable
file in COFF (.ld) format is produced. The linker can also produce Intel hex (.hex, .dat) files,
map files (.map) and symbol files (.sym) in ZiLOG symbol format.
The primary components of the linker are shown in Figure 3-2.
F
IGURE
3-2. L
INKER
COMPONENTS
Linker
Link and Relocate
Link Command
Line or File
(text file)
Relocatable Object Mod-
ules
and
ZOMF or COFF Library
Files
(binary files)
Executable Intel Hex
(.hex & .dat) or COFF
(.ld) Format File
Linker Messages
Map File
Symbol File in Zilog Sym-
bol Format
(text file)
C-compiler libraries
C run-time Initialization files.