beautypg.com

Order, Range, Order range – Zilog ZUSBOPTS User Manual

Page 297: Syntax, Example

background image

UM017105-0511

Linker Commands

Zilog Developer Studio II – ZNEO™

User Manual

269

Syntax

[

-

]

NOWARN

ORDER

The

ORDER

command establishes a linking sequence and sets up a dynamic

RANGE

for

contiguously mapped address spaces. The base of the

RANGE

of each consecutive address

space is set to the top of its predecessor.

Syntax

ORDER

[,]

<name> can be a group, address space, or segment. is a comma-separated list
of other groups, address spaces, or segments. However, a

RANGE

is established only for an

address space.

Example

ORDER GDATA,GTEXT

where

GDATA

and

GTEXT

are groups.

In this example, all address spaces associated with

GDATA

are located before (that is, at

lower addresses than) address spaces associated with

GTEXT

.

RANGE

The

RANGE

command sets the lower and upper bounds of a group, address space, or seg-

ment. If an address falls outside of the specified

RANGE

, the system displays a message.

You must use white space to separate the colon from the

RANGE

command operands.

Syntax

RANGE : [, : ...]

<name> can be a group, address space, or segment. The first <expression> marks the
lower boundary for a specified address

RANGE

. The second <expression> marks the upper

boundary for a specified address

RANGE

.

Example

RANGE EROM $008000 : $01FFFF,$040000 : $04FFFF

Note:

This manual is related to the following products: