Article View: comp.sys.amiga.tech
Article #13257Re: Memory allocation
From: Bruce Dawson
Date: Sat, 30 Dec 1989 21:16
Date: Sat, 30 Dec 1989 21:16
10 lines
824 bytes
824 bytes
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.
Technical Details
Message-ID:
<874@mindlink.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!uunet!van-bc!rsoft!mindlink!a464Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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