### /EXEPACK Linker Option (OS/2)

Syntax: | Default:
/E[XEPACK][:1|:2] /NOEXE[PACK] | /NOEXEPACK

Use /EXEPACK to reduce the size of the executable by compressing pages in the file. The operating system automatically decompresses the pages when the program runs.

Specify /EXEPACK:1 to compress data segments in your output file, using run-length encoding. If compression does not reduce the size of a page, the linker does not compress that page.

Specify /EXEPACK:2 to compress both data and code segments, as follows:

- For data segments, the linker tries both LZW compression and run-length encoding compression, and uses the method with the more efficient result.
- For code segments, the linker uses LZW compression.

Segments are evaluated one page at a time. If compression does not reduce the size of the page, the page is not compressed.

Performance Consideration
Linking and compressing generally takes longer than linking alone. However, if the compression is effective enough, it can actually speed up the linking process, because there is less information to write to file.

If your program is intended to run only on OS/2 Version 3.0 or later, then specify /EXEPACK:2 for best results. If your program is also intended to run on older versions, specify /EXEPACK:1.

Summary of Linker Options