beautypg.com

Outputfile>== change – Zilog ZUSBOPTS User Manual

Page 290: Example, Syntax

background image

Linker Commands

UM017105-0511

262

Zilog Developer Studio II – ZNEO™
User Manual

=

This command defines the executable file, object modules, and libraries involved in the
linking process. <module list> is a list of object module or library path names to be linked
together to create the output file. <output file> is the base name of the output file gener-
ated. The extension of the output file name is determined by the FORMAT command.

Example

sample=c:\ZDSII_ZNEO_4.11.0\lib\zilog\startups.obj, \

test.obj, \

c:\ZDSII_ZNEO_4.11.0\lib\standard\chelpsd.lib, \

c:\ZDSII_ZNEO_4.11.0\lib\standard\crtsd.lib, \

c:\ZDSII_ZNEO_4.11.0\lib\standard\fpsd.lib

This command links the two object modules and three library modules to generate the
linked output file

sample.lod

in IEEE 695 format when the

format=OMF695

command

is present.

In the preceding example, the

\

(backslash) at the end of the first line allows the <module

list> to extend over several lines in a linker command file.


The backslash to continue the <module list> over multiple lines is not supported when this
command is entered on the DOS command line.

CHANGE

The

CHANGE

command is used to rename a group, address space, or segment. The

CHANGE

command can also be used to move an address space to another group or to move a seg-
ment to another address space.

Syntax

CHANGE

=

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

<newname> is the new name to be used in renaming a group, address space, or segment;
the name of the group where an address space is to be moved; or the name of the address
space where a segment is to be moved.

The linker recognizes the special space

NULL

.

NULL

is not one of the spaces that an object

file or library contains in it. If a segment name is changed to

NULL

using the CHANGE

Notes:

Note:

This manual is related to the following products: