Packing Code (/PACKCODE)

The /PACKCODE linker option groups neighboring code segments together. When used with the /F option, the /PACKCODE option greatly increases the number of near calls that can be made to a function. This option can be followed with a limit (expressed in bytes) at which to stop packing and to begin a new group. Here is the syntax for the /PACKCODE option:

/PACKCODE:number

where number is an optional hexadecimal, octal, or decimal number that specifies the limit for packing. The radix (octal, decimal, or hexadecimal) is specified just as you would specify it to a C or C++ program.

Radix Rules for Specification

Octal Specify the octal number with a leading 0. You can only use the digits 0 through 7 in an octal number. For example, 07777.
Decimal Specify the decimal number without a leading 0. For example, 65530.
Hexadecimal Specify the hexadecimal number with a leading 0x. For example, 0x3FFF.

If you omit the packing limit, the linker supplies a default value of 65, 530.

The abbreviation for the /PACKCODE option is /PACKC.