Assigning memory at link time, Output files – Zilog ZUSBOPTS User Manual
Page 242
Output Files
UM017105-0511
214
Zilog Developer Studio II – ZNEO™
User Manual
MENT
directive attaches code and data to a segment. The
SEGMENT
directive makes that
segment the current segment. Any code or data following the directive resides in the seg-
ment until another
SEGMENT
directive is encountered. For more information about the
SEGMENT directive, see the
A segment can also be defined with a boundary alignment and/or origin.
Alignment.
Aligning a segment tells the linker to place all instances of the segment in
your program on the specified boundary.
Although a module can enter and leave a segment many times, each module still has only
one instance of a segment.
Origin.
When a segment is defined with an origin, the segment becomes an absolute seg-
ment, and the linker places it at the specified physical address in memory.
Assigning Memory at Link Time
At link time, the linker groups those segments of code and data that have the same name
and places the resulting segment in the address space to which it is attached. However, the
linker handles relocatable segments and absolute segments differently:
Relocatable segments.
If a segment is relocatable, the linker decides where in the
address space to place the segment.
Absolute segments.
If a segment is absolute, the linker places the segment at the abso-
lute address specified as its origin.
At link time, you can redefine segments with the appropriate linker commands.
Output Files
The assembler creates the following files and names them the name of the source file but
with a different extension:
•
<source>
.lst
contains a readable version of the source and object code generated by
the assembler. The assembler creates <source>
.lst
unless you deselect the
Generate
Listing File (.lst)
checkbox in the
Assembler
page of the
Project Settings
dialog
box. See
Generate Assembly Listing Files (.lst)
Note:
Note: