ID Number: Q50705
3.6x 4.x 5.0x 5.10 5.11 5.13 5.15 | 5.0x 5.10 5.11 5.13 5.15
MS-DOS | OS/2
Summary:
The LINK code packing option, /PAC[:n], groups together neighboring
code segments into the same segment of maximum size "n" bytes. The
results of using /PAC are reliable only when "n" is in the range of 0
to 65500. Page 278 of the "Microsoft C 5.1 CodeView and Utilities"
reference manual states the default value for "n" is 65530. This is
incorrect. The MASM 5.1 CodeView documentation, "MASM 5.1 CodeView and
Utilities," and the Pascal documentation also document the incorrect
value.
Prior to LINK version 5.03, the option was /PAC. Beginning with
version 5.03, the option was changed to /PACKC to differentiate
/PACKC[ODE] from the new /PACKD[ATA] option.
More Information:
When linking with /PACKC[:n], there will be no errors if n has a value
of 0 to 65500. If n has a value of 65501 to 65536, LINK will generate
the following warning:
L4011: PACKODE value exceeding 65500 unreliable
If n has a value of 65537 or greater, LINK will generate the following
error:
L1005: packing limit exceeds 65536 bytes
Additional reference words: 3.60 3.61 3.64 3.65 3.69 4.06 4.07 4.10
5.01.20 5.01.21 5.02 5.03 5.05 5.10 5.11 5.13 5.15