Assigning memory at link time, Output files, Source listing (.lst) format – Zilog EZ80F916 User Manual
Page 206

UM014423-0607
ZiLOG Developer Studio II
eZ80Acclaim!
®
User Manual
186
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 absolute address specified
as its origin.
NOTE: At link time, you can redefine segments with the appropriate linker commands. For
more information about link commands, see “Linker Commands” on page 247.
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 (see “Source Listing (.lst) Format” on page 186). The assembler creates
<source>
.lst
unless you deselect the Generate Listing File (.lst) check box in the
Assembler page of the Project Settings dialog box (see “Generate Assembly Listing
Files (.lst)” on page 60).
•
<source>
.obj
is an object file in relocatable OMF695 format. The assembler creates
<source>
.obj
. See “Object Code (.obj) File” on page 187.
Source Listing (.lst) Format
The listing file name is the same as the source file name with a
.lst
file extension.
Assembly directives allow you to tailor the content and amount of output from the assem-
bler.
Each page of the listing file (
.lst
) contains the following:
•
Heading with the assembler version number
•
Source input file name
Do not use source input files with
.lst
or
.obj
extensions.
The assembler does not assemble files with these extensions,
and therefore the data contained in the files is lost.