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.
Memory Allocation Size Directive
◄Compiler Directives► ◄Contents► ◄Index► ◄Back►
{$M <stacksize>, <minheap>, <maxheap>}
Description
Specifies the memory-allocation parameters for a program file. It
has no effect inside a unit. The default is {$M 16384, 0, 655360}.
Parameter Minimum Maximum
═════════ ═══════ ═══════
stacksize 1024 65520
minheap 0 655360
maxheap minheap 655360
Note: The $M symbol has two uses. When followed by a + or -, it
turns method checking on or off.
See also: {$M+}, {$M-}