🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.atari.st
Article #32932

Re: MWC & large arrays -- help!

#32932
From: John Peters
Date: Sun, 19 Jun 1988 16:02
14 lines
1086 bytes
	I have ran into this problem before to.  My brother regularly 
corresponds with someone that helped with the 3.0 MCW developement.  so 
here is the reason.  The MWC compiler uses signed short offsets from a 
stack value for local variables.  this means that you have 15 bits or
32K to use as an offset, question answered.  This is not true of global
variables.  All global variables are long offset from a base address so
the problem does not exist and structures and arrays can be as big as
wanted.

	Hope this helped.  I was taught to not use global variables much but 
it seems that they have their place.

						--  Johnnie  --
Technical Details
Message-ID: <427@sp7040.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!husc6!uwvax!vanvleck!uwmcsd1!ig!agate!helios.ee.lbl.gov!lll-tis!oodis01!uplherc!sp7040!jsp
References: <734@cacilj.UUCP> <46700008@hcx2>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!husc6!uwvax!vanvleck!uwmcsd1!ig!agate!helios.ee.lbl.gov!lll-tis!oodis01!uplherc!sp7040!jsp
From: jsp@sp7040.UUCP (John Peters)
Newsgroups: comp.sys.atari.st
Subject: Re: MWC & large arrays -- help!
Message-ID: <427@sp7040.UUCP>
Date: 19 Jun 88 16:02:16 GMT
References: <734@cacilj.UUCP> <46700008@hcx2>
Organization: Unisys, Salt Lake City, UT
Lines: 14