
UM017105-0511 Troubleshooting the Linker
Zilog Developer Studio II – ZNEO™
User Manual
295
Troubleshooting the Linker
Review the following questions to learn more about common situations you may encoun-
ter when using the linker.
How do I speed up the linker?
Use the following tips to lower linker execution times:
•
If you do not need a link map file, deselect the Generate Map File checkbox in the
Project Settings dialog box (Output page); see page 73.
•
Make sure that all DOS windows are minimized.
How do I generate debug information without generating
code?
Use the COPY or CHANGE command in the linker to copy or change a segment to the
predefined NULL space. If you copy the segment to the NULL space, the region is still
allocated but no data is written for it. If you change the segment to the NULL space, the
region is not allocated at all.
The following examples are of commands in the linker command file:
COPYmyseg NULL
CHANGE myseg = NULL
How much memory is my program using?
Unless the Generate Map File checkbox is unchecked in the Project Settings dialog box
(
Output page), the linker creates a link map file each time it is run. The link map file name
is the same as your executable file with the
.map extension and resides in the same direc-
tory as your project file. The link map has a wealth of information about the memory
requirements of your program. Views of memory usage from the space, segment, and
module perspective are given as are the names and locations of all public symbols. See the
Generate Map File
section on page 73 and the MAP command on page 267.
How do I create a hex file?
Select Intel Hex32 Records from the Executable Formats area in the Project Settings
dialog box (see the Project Settings—Output Page
section on page 72).
Comentários a estes Manuais