Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!uunet!van-bc!rsoft!mindlink!a464 From: a464@mindlink.UUCP (Bruce Dawson) Newsgroups: comp.sys.amiga.tech Subject: Re: Memory allocation Message-ID: <874@mindlink.UUCP> Date: 30 Dec 89 21:16:09 GMT Organization: MIND LINK! - British Columbia, Canada Lines: 10 The stack is _not_ used as the heap on the Amiga. Local variables, including arrays are allocated on the stack. mallocs, AllocMem()s etc. are allocated out of the free memory 'heap', which includes all memory that has not already been allocated. Since stack memory has already been allocated, it won't be used by one of these calls. However, since the example program was declaring an array on the stack, it would indeed chew up stack space at an enormous rate. .Bruce.