beautypg.com

Linker referenced files – Zilog EZ80F916 User Manual

Page 179

background image

UM014423-0607

Using the ANSI C-Compiler

ZiLOG Developer Studio II

eZ80Acclaim!

®

User Manual

159

For more detailed description of the linker and the various commands it supports, see
“Using the Linker/Locator” on page 235. A C program consists of compiled and assem-
bled object module files, compiler libraries, user-created libraries, and special object mod-
ule files used for C run-time initializations. These files are linked based on the commands
given in the linker command file.

The default linker command file is automatically generated by the ZDS II IDE whenever a

build

command is issued. It has information about the ranges of various address spaces

for the selected device, the assignment of segments to spaces, order of linking, and so on.
The default linker command file can be overridden by the user.

The linker processes the object modules (in the order in which they are specified in the
linker command file), resolves the external references between the modules, and then
locates the segments into the appropriate address spaces as per the linker command file.

Linker Referenced Files

The default linker command file generated by the ZDS II IDE references system object
files and libraries based on the project options selected by the user. A list of the system
object files and libraries is given in the following table. The linker command file automat-
ically selects and links to the appropriate version of the C run-time and (if necessary)
floating-point libraries from the list shown in the following table, based on your project
settings. In this table, <CPU> stands for any of the strings

F91

,

F92

,

F93

,

L92

, or

190

, as

appropriate for the CPU you are using in your project.

Table 5. Linker Referenced Files

File Description

cstartup.obj

C startup module object file, common code

init_params_<CPU>.obj

Object file for CPU-specific initialization

vectors24.obj

24-bit interrupt vectors object file

vectors16.obj

16-bit interrupt vectors object file

zsldevinitdummy.obj

Object file for dummy initialization of peripherals

gpio.lib

Library for GPIO devices, no debug information; part of ZSL

gpioD.lib

Library for GPIO devices, with debug information; part of ZSL

uart<CPU>.lib

CPU-specific library for UART devices, no debug information;
part of ZSL

uart<CPU>D.lib

CPU-specific library for UART devices, with debug
information; part of ZSL

uart<CPU>sim.lib

CPU-specific library for UART devices to be run on the
simulator, no debug information; part of ZSL

This manual is related to the following products: