Heap Zones
Volume Number: 3
Issue Number: 1
Column Tag: ABC's of C
Peeking at Heap Zones 
By Bob Gordon, Contributing Editor
Memory is the stuff of which there never is enough. To reduce problems due to
lack of memory, most languages provide means to grab some memory for use and later
release it. Standard C has a number of functions to manage memory allocation and
deallocation. We are not going to discuss these in any detail because the Macintosh has
a complete memory management system. We have been using the memory management
routines indirectly every time we opened a window, but as we go further into Mac
programming we need to manipulate memory directly.
Figure 1: Examining the heap
Macintosh Memory Organization
Just about every book on programming the Macintosh has pictures of the
Macintosh memory map. For the 64K ROMS, it looks roughly like: