Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!stanford.edu!neon.Stanford.EDU!torrie From: torrie@cs.stanford.edu (Evan Torrie) Newsgroups: comp.sys.amiga.advocacy Subject: Re: STACK ON MAC VS AMIGA Message-ID: <1991Jun25.070328.4415@neon.Stanford.EDU> Date: 25 Jun 91 07:03:28 GMT References: Sender: torrie@neon.Stanford.EDU (Evan James Torrie) Organization: Computer Science Department, Stanford University, Ca , USA Lines: 41 NJ_GOKEMEIJE@FANDM.BITNET writes: >>From: IN%"dant@ryptyde.cts.com" 24-JUN-1991 13:12:49.37 >> >>"Yes, also a STACK on the mac can only be upto 32K" >> >>A stack can only be up to 32K? Stack of what? The data structure in >>general? What is the Amiga limit? >> >on the Macintosh the stack for each program: the structure in general >can only be 32 K. >On the Amiga, the stack can be anysize I believe: at least up to 100 K >(matlab wants that) >Any bigger on the MAC and it will run it the system heap. I don't think so. At least, it would seem strange, for example, that Think Pascal [which requires you to tell it the stack size because of its funky memory allocation in its own heap] lets you set the stack size to whatever you require. I've on many occasions, set it to 128K for some novice programmers in the lab who decided to pass around arrays as parameters to heavily recursive procedures. A stack can be any size so long as it doesn't run into the application's heap [the infamous System Err #28! Stack and heap have collided!] >question: I believe every application has its own systemheap right? No, there is only one system heap. That's why applications can share data by sticking it in the system heap. >But there is a bigsystemheap which can be accessed using TempNewHandle() >but in no other way right? The memory obtained via TempNewHandle is essentially outside of the system zone and all application zones, in some unused part of memory. -- ------------------------------------------------------------------------------ Evan Torrie. Stanford University, Class of 199? torrie@cs.stanford.edu "And in the death, as the last few corpses lay rotting in the slimy thoroughfare, the shutters lifted in inches, high on Poacher's Hill..."