\194
MS-DOS User's Reference
The lexepack option
rile Imap 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:
lexepack
The
lexepack
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
lexepack
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
lexepack
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:
Ie
Example:
This example creates a packed version
of
the
file program.exe:
link
program
Ie;
Producing a Public-Symbol Map
Syntax:
Imap
The
Imap
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
Imap
option
is
required
if
you
want
to use symdeb for symbolic
debugging.
Minimum abbreviation:
1m
[
[
[-
[
[
[
[
[
[
[