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

Syntax: | Default:
/PACKC[ODE][:number] /NOP[ACKCODE] | /PACKCODE:0XFFFFFFFF

Use /PACKCODE to produce slightly faster and more compact code. The linker groups neighboring code segments that have similar attributes, and assigns them to the same load segment.

Specify number to set the maximum size for a load segment. The linker will start new load segments as necessary to avoid exceeding the maximum. For 16-bit segments, number is ignored, and 65500 is used instead. By default, the linker sets a maximum of 0xFfffFfff.

Use /NOPACKCODE to turn off code segment packing.

Note: If you are compiling old object files that contain #pragma alloc_text directives, or were compiled with the /Nt option, then use / NOPACKCODE for debugging. This restriction does not apply to object files created with VisualAge C++ v3.0 and later.

Use the /OPTFUNC linker option to reduce the size of your output files even further.

Summary of Linker Options