Heap-based memory allocation

This is an old revision of this page, as edited by R. S. Shaw (talk | contribs) at 06:19, 29 May 2005 (+cat mem man). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

In Heap Based Memory Allocation, the memory is allocated from a large pool of unused memory area called the heap dynamically. Space requirement is calculated during allocation at run-time and allocated memory areas life cycle does not depend on the procedure entry/exit. The allocated area is reached indirectly, by pointers or their equivalent (such as reference variables in Java and .NET). An alternative way to allocate memory is Stack-Based Memory Allocation.