LINK Help (linkx.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
/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.
                                    -♦-