Advanced Heap Management for Turbo Pascal 5.5
Version 5.5
January 6, 1990
Overview
-----------------------------------------------------------------
Turbo Pascal's heap is one of the most useful and powerful
features of the language. By using the heap, programs can access
all 640K of DOS memory in a completely dynamic fashion. With
power comes responsibility, however. Managing pointers to the
heap is one of the trickiest subjects in Pascal. And as time goes
by, the 640K of DOS memory doesn't seem all that big -- accessing
even more memory is desirable.
This collection of Turbo Pascal units and utilities offers
methods for managing and extending the heap. It includes the
following:
o a patch to TPC.EXE so that the compiler will generate an
interrupt to a user-supplied routine after dereferencing each
pointer.
o a unit that checks for dereferencing an invalid pointer.
o a unit that transfers control of the New, Getmem, Dispose,
and FreeMem procedures to user-supplied routines.
|