### HEAPSIZE Module Definition Statement (Windows)

Syntax: | Parameters:
`HEAPSIZE=` reserve[ ,commit] | Virtual stack size Initial physical memory

Use the HEAPSIZE statement to define the size of the application's local heap in bytes.

You can enter any positive integer for the heap size.

reserve indicates the total virtual address space reserved. commit sets the amount of physical memory to allocate initially. When commit is less than reserve, memory demands are reduced, although execution time may be slower.

Values specified by the /HEAP linker option take precedence over the HEAPSIZE statement.

Given the following line in a .def file:

    HEAPSIZE 4000

the linker sets the local heap to 4000 bytes.

The HEAPSIZE statement has no effect on a 32-bit OS/2 program.

Summary of Module Definition Statements