Packing Data (/PACKDATA)

The /PACKDATA option is analogous to the /PACKCODE option, except that it groups together neighboring data segments instead of code segments. By grouping data segments, you reduce the overhead needed to use them. Here is the syntax for the /PACKDATA option:

/PACKDATA:number

where number is an optional hexadecimal, octal, or decimal number that specifies the limit for packing. The radix (hexadecimal, octal, or decimal) is specified just as you would specify it to a C or C++ program. For more information on specifying hexadecimal, octal, or decimal numbers, see “Packing Code (/PACKCODE)”.

If the packing limit is omitted, the linker supplies a default value of 65,535 (0xFFFF).

The abbreviation for the /PACKDATA option is /PACKD.