LINK Help (linker.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
─────LINK───────────────────────────────────────────────────────────────────
 
     Syntax:  /PACKD[ATA][:number]
 
     The /PACKD option turns on data-segment packing. LINK considers
     to be a data segment any segment definition with a class name that
     does not end in CODE. Data-segment packing combines adjacent data-
     segment definitions into the same physical segment.
 
     Specify <number> in bytes to set the maximum size for physical
     data segments formed by /PACKD. The default 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 only for
     segmented executable files. It might be necessary to use /PACKD to
     get around the limit of 254 physical data segments per executable
     file imposed by an operating system. If you get LINK error L1073
     "file-segment limit exceeded", try using /PACKD.
                                    -♦-