Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!UIAMVS.BITNET!AWCTTYPA From: AWCTTYPA@UIAMVS.BITNET ("David A. Lyons") Newsgroups: comp.sys.apple Subject: large GS programs in APW C Message-ID: <8903201806.aa11426@SMOKE.BRL.MIL> Date: 20 Mar 89 22:59:00 GMT Sender: daemon@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 26 >Date: Mon, 20 Mar 89 07:15:17 GMT >From: Scott Lindsey About APW C (and/or MPW IIgs C?): >You CAN have a program larger than a bank (remember my rogue-clone >port? [still being debugged]). What you're basically limited to is >1 bank (64K) of data. The equivalent of _main() sets the data bank >to the bank containing your data (singular) segment. [...] Now, you >say, who on earth would want more than 64K of data? How 'bout a >program that needs 1.25Mb to run? The 64K limit applies only to SIMPLE STATIC variables, right? (Not to arrays or to auto variables.) I have a hard time imagining how to use up all 64K. Desktop programs like AWGS (or anything that lets you work with multiple documents) doesn't need much global data anyway--just allocate whatever you need from the memory manager when it's needed. Does something come out of that 64K that I'm forgetting? >Scott Lindsey >Claris Corp. >ames!claris!wombat >wombat@claris.com