beautypg.com

Linker command range, Linker command line – Zilog Z80380 User Manual

Page 60

background image

Linker Command Line

Linking Files

3–10

UM004001-COR1103

Linker Command RANGE

This command sets the lower and upper limits of a control section or an address space. The
linker issues a warning message if an address falls beyond the range declared with this com-
mand.

The linker provides multiple ways for the user to apply this command for a link session. Each
separate case of the possible syntax is described below.

C

ASE

1

Syntax :

RANGE , [ , ... ]

<name> may be a control section, or an address space. The first <expression> indicates the
lower bound for the given address RANGE. The <length> is the length, in words, of the
object.

Example: RANGE ROM %700 , %100

C

ASE

2

Syntax :

RANGE <name> <expression> : <expression> [ , ... ]

<name> may be a control section or an address space. The first <expression> indicates the
lower bound for the given address RANGE. The second <expression> is the upper bound for
it.

Example: RANGE ROM %17ff : %2000

N

OTE

:

Refer to the Expression Formats for the format of writing an expression.

LINKER COMMAND LINE

The syntax for the linker command line is:

ZLD [] ...

.

The “[ ]” enclosing the string “options” denotes that the options are not mandatory. In
this document this convention is continued for further discussion on linker’s syntax and
operations.

The items enclosed in “< >” indicate the non-literal items.

The “. . .” (ellipses) indicate that multiple tokens can be specified. These tokens are of
the type of the non-literal specified in the syntax just prior to the ellipses.

The syntax uses “%” prefix to a number to specify a hexadecimal numeric
representation.

The linker links the files listed in <filename> list. Each <filename> is the name of a
COFF object file or library file, or the name of a text file containing linker commands
and options.