The /EXEPACK Option

Option

/E[[XEPACK]]

The /EXEPACK option directs LINK to remove sequences of repeated bytes (usually null characters) and to optimize the load-time relocation table before creating the executable file. (The load-time relocation table is a table of references relative to the start of the program, each of which changes when the executable image is loaded into memory and an actual address for the entry point is assigned.)

The /EXEPACK option does not always produce a significant saving in disk space and may sometimes actually increase file size. Programs that have a large number of load-time relocations (about 500 or more) and long streams of repeated characters are usually shorter if packed. LINK issues a warning if the packed file is larger than the unpacked file. The time required to expand a packed file may cause it to load more slowly than a file linked without this option.

You cannot debug packed DOS files with CodeView because the unpacker that /EXEPACK appends to a DOS program is incompatible with CodeView. In a Windows program, the unpacker is in the loader, and there is no conflict with CodeView.

The /EXEPACK option is not compatible with the /HIGH or /Q option.