beautypg.com

Inside – Zilog Z8F0130 User Manual

Page 377

background image

UM013037-1212

MAP

Zilog Developer Studio II – Z8 Encore!

User Manual

353

The

LOCATE

of a segment overrides the

LOCATE

of an address space. A

LOCATE

does not

override an absolute segment.

Syntax

LOCATE

AT

<name> can be a group, address space, or segment.

<expression> is the address to begin loading.

Example

LOCATE ROM AT $10000

Refer to the

Linker Expressions

section on page 359 for the format to write an expression.

MAP

The

MAP

command causes the linker to create a link map file. The link map file contains

the location of address spaces, segments, and symbols. The default is to create a link map
file.

NOMAP

suppresses the generation of a link map file.

Syntax

[-]

MAP

[ = <mapfile>]

mapfile has the same name as the executable file with the

.map

extension unless an

optional <mapfile> is specified.

Example

MAP = myfile.map

Link Map File

A sample map file is shown in the

Sample Linker Map File

section on page 366.

The link map file base name is the same as your executable file with the

.map

extension

and resides in the same directory as the executable file. The link map has a wealth of infor-
mation about the memory requirements of your program. Views of memory use from the
space, segment, and module perspective are given as are the names and locations of all
public symbols. For the Z8 Encore! link map file, the C prefix indicates ROM, the E prefix

Note:

Note:

Note: