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.
HEAPSIZE Statement
                                             Up Contents Index Back
─────LINK───────────────────────────────────────────────────────────────────
 
     Syntax:  HEAPSIZE {bytes | MAXVAL}
 
     Defines the size of the application's or DLL's local heap in
     bytes. This value affects the size of the default data segment
     (DGROUP). By default, when HEAPSIZE is not specified, the program
     does not have a local heap.
 
     The <bytes> argument is a positive integer. The limit is MAXVAL;
     excess bytes are not allocated.
     See: Entering Numeric Arguments
 
     MAXVAL sets the heap size to 64K minus the size of DGROUP.
 
     Example
 
          HEAPSIZE 4000
 
     This example sets the local heap to 4,000 bytes.
                                    -♦-