Commodore PC Ms-Dos 3.2 User's Manual page 266

Table of Contents

Advertisement

194 MS-DOS User's Reference
The /exepack option
The /map option
Example:
The following command causes the linker to pause just before
creating the executable file file. exe. After creating this file, link
pauses again to let you replace the original disk:
link
file/pause,file,,\lib\math
Packing Executable Files
Syntax:
/exepack
The /exepack option directs link to remove sequences of
repeated bytes (typically nulls) and optimize the load-time reloca
tion table before creating the executable file. Executable files
linked with the /exepack option may be smaller, and, thus, load
faster than files linked without the option. However, the Microsoft
Symbolic Debug Utility (symdeb) cannot be used with packed
files.
The /exepack option does not always save a significant amount of
disk space (in some cases it may even increase file size). Programs
that have a large number of load-time relocations (about 500 or
more) and long streams of repeated characters will usually be
shorter if packed. If you are not sure if your program meets these
conditions, try linking it both ways and compare the results.
Minimum abbreviation: /e
Example:
This example creates a packed version of the file program, exe:
link
program
/e;
Producing a Public-Symbol Map
Syntax:
/map
The /map option causes link to produce a listing of all public
symbols declared in your program. This list is copied to the map
file that link creates. For a complete description of the listing-file
format, see the section, "The Map File," earlier in this chapter. The
/map option is required if you want to use symdeb for symbolic
debugging.
Minimum abbreviation: /m
U
U
u
u
u
u

Advertisement

Table of Contents
loading

Table of Contents