/PACKD Option
◄Up► ◄Contents► ◄Index► ◄Back►
─────/PACKD Option──────────────────────────────────────────────────────────
Syntax: /PACKD[ATA][:number]
The /PACKD option turns on data-segment packing. LINK considers
any segment definition with a class name that does not end in CODE
as a data segment. Adjacent data-segment definitions are combined
into the same physical segment.
Specify <number> to set the maximum size for physical data
segments formed by /PACKD. Packing is off by default; the default
without <number> or /PACKD is 64K. When LINK cannot add another
segment without exceeding <number>, it forms a new segment.
See: ◄Entering Numeric Arguments►
/PACKD produces slightly faster and more compact code. It affects
only programs with multiple data segments and is valid for OS/2
and Windows programs only. It might be necessary to use /PACKD to
get around the limit of 255 physical data segments per executable
file imposed by OS/2 and Windows. If you get LINK error L1073
"file-segment limit exceeded", try using /PACKD.
-♦-