Linker command group, Linker command locate, Linker command order – Zilog Z80380 User Manual
Page 59

UM004001-COR1103
3–9
Linking Files
Linker Command File
The “Expression Formats” section, which follows, explains different types of expressions
that can be used.
Linker Command GROUP
This command allows the user to group control sections together and define the size of the
grouped sections using the RANGE command.
Syntax:
GROUP <group name> = <section1> <section2> ]
The group name is the name of the grouped sections. The group name can not be the same
name as an existing address space. Section1 and section2 are the sections assigned to the
group. Sections within a group are allocated in the specified order.
N
OTE
:
The new group’s lower address location and size must be defined uisng the linker’s RANGE
command.
Example:
GROUP RAM =.data,.bss
RANGE RAM = 1000h:1FFFh
This example defines RAM as a block of memory in the range of 1000h to 1FFFh. The
.data
and
.bss
control sections are allocated to this block. The .data section is allo-
cated at address 1000h and the .bss section is allocated at the end of the .data section.
Linker command LOCATE
This command sets the base address for a control section.
Syntax:
LOCATE
Example:
LOCATE .text 1000h
The name must be a control section name. The address be within the address range of the
address space to which the control section belongs.
Linker Command ORDER
This command determines a sequence of linking.
Syntax:
ORDER <name1> [,<name2> ...]
<namen> must be a control section name.
Example:
ORDER CODE1, CODE2