beautypg.com

Using the linker/locator – Zilog EZ80F916 User Manual

Page 255

background image

UM014423-0607

Using the Linker/Locator

ZiLOG Developer Studio II

eZ80Acclaim!

®

User Manual

235

Using the Linker/Locator

The eZ80Acclaim! developer’s environment linker/locator creates a single executable file
from a set of object modules and object libraries. It acts as a linker by linking together
object modules and resolving external references to public symbols. It also acts as a loca-
tor because it allows you to specify where code and data are stored in the target processor
at run time. The executable file generated by the linker can be loaded onto the target sys-
tem and debugged using ZiLOG Developer Studio II.

The following sections describe the linker/locator:

“Linker Interactions with the Compiler and Assembler” on page 236

“Linker Configurations” on page 240

“Invoking the Linker” on page 246

“Linker Commands” on page 247

“Linker Expressions” on page 258

“Using Modified ZDS II Startup Modules” on page 264

“Sample Linker Map File” on page 267

“Troubleshooting the Linker” on page 283

“Warning and Error Messages” on page 286

NOTE: The Command Processor allows you to use commands or script files to automate the

execution of a significant portion of the IDE’s functionality. For more information about
using the Command Processor, see “Using the Command Processor” on page 387.

The following six major types of objects are manipulated during the linking process:

Modules

Modules are created by assembling a file with the assembler or compiling a file with
the compiler.

Libraries

Object libraries are collections of object modules created by the Librarian.

Segments

A segment is a named logical partition of data or code that forms a continuous block
of memory. Segments with the same name residing in different modules are
concatenated together at link time. Segments are assigned to an address space and can
be relocatable or absolute. Relocatable segments can be randomly allocated by the
linker; absolute segments are assigned a physical address within its address space. See

This manual is related to the following products: