beautypg.com

How do i speed up the linker, How can i debug code already programmed in rom – Zilog EZ80F916 User Manual

Page 304

background image

UM014423-0607

Using the Linker/Locator

ZiLOG Developer Studio II

eZ80Acclaim!

®

User Manual

284

“How do I determine the size of my actual hex code?” on page 286

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 check box in the
Project Settings dialog box (Output page). See “Generate Map File” on page 93.

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:

COPY

myseg NULL

CHANGE myseg = NULL

How can I debug code already programmed in ROM?

This solution has two parts:

“Part 1: Create and Program the Hex File with Debug Information” on page 284.

“Part 2: Create a Build Configuration that Mimics the Original for Debugging” on
page 285

Part 1 produces code that can be debugged and places it on the target, and Part 2 is neces-
sary to get the IDE in sync with the code on the target. Both parts are necessary to make
this solution work.

NOTE: Part 2 essentially produces a build configuration within the original project that allows the

IDE to connect to the target for debugging. The new build configuration contains virtually
the same project settings, except the executable format, as the project you used for creating
your hex file.

Part 1: Create and Program the Hex File with Debug Information
1. From the File menu, select Open Project to open the project that was used to create

the original hex file with ZDS II.

2. Select the build configuration used to create the original hex file from the Select Build

Configuration drop-down list box in the Build toolbar.

3. Select Settings from the Project menu.

This manual is related to the following products: