CompuServe Messages

#Stack

    10-Nov-90 20:53:27
Sb: #3447-#Stack
Fm: Michael Haynie 72017,1030
To: Don Curtis/SYSOP 76703,4321
(butting in…) Sorry, but the heap is NOT the stack! The stack is an area of memory reserved for return pointer, parameter, and local variable storage for functions and procedures (as discussed in this thread). The heap is basically the rest of system memory. It is memory that is not otherwise occupied (by program, static data, the operating system, etc), and is therefore available for dynamic storage allocation. malloc() calls in C use the heap. Local variables in all modern languages use the stack. Hope I didn't muddy the waters. (climbing back under my rock). Michael B. Haynie Compuserve: 72017,1030 UUCP: attmail!wisdom!guru4!haynie