Debug, Define, Format – Zilog EZ80F916 User Manual
Page 271: Debug define format

UM014423-0607
Using the Linker/Locator
ZiLOG Developer Studio II
eZ80Acclaim!
®
User Manual
251
NOTE: 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 is copied to
NULL
as a command to
the linker, the segment is deleted from the linking process. This can be useful if
you need to link only part of an executable or not write out a particular part of the
executable. The predefined space
NULL
can also be used to prevent initialization of
data while reserving the segment in the original space.
Refer to “Linker Expressions” on page 258 for the format to write an expression.
DEBUG
The
DEBUG
command causes the linker to generate debug information for the debugger.
This option is applicable only if the executable file format is IEEE 695.
Syntax
-DEBUG
DEFINE
The
DEFINE
command creates a user-defined public symbol at link time. This command is
used to resolve external references (
XREF
) used at assembly time.
Syntax
DEFINE
=
<symbol name> is the name assigned to the public symbol.
<expression> is the value assigned to the public symbol.
Example
DEFINE copy_size = copy top of data_seg - copy base of data_seg
NOTE: Refer to “Linker Expressions” on page 258 for the format to write an expression.
FORMAT
The
FORMAT
command sets the executable file of the linker according to the following
table.
The default setting is
IEEE 695
.
File Type
Option
File Extension
IEEE 695 format
OMF695
.lod
Intel 32-bit Hex
INTEL32
.hex