Article View: comp.sys.amiga.tech
Article #10339Re: Large arrays in Lattice V4.0
From: Chuck McManis
Date: Tue, 22 Nov 1988 22:11
Date: Tue, 22 Nov 1988 22:11
22 lines
1610 bytes
1610 bytes
In article <652@helios.toronto.edu> dooley@helios.physics.utoronto.ca (Kevin Dooley) writes:
>I have been trying to run some of my larger number crunching monstrousities
>on my Amiga (it's not much slower than a vax or a sun-4 because I'm not
>competing with 15 people running emacs). The only problem is that the
>compiler balks at my huge arrays. It gives me error number 82 for which
>my handy dandy manual says:
If you are using Lattice C :
Use the -b0 (thats a zero) switch when compiling your program. The default
in 4.0 (which was changed from 3.x) was to use 16 bit offsets for data
addressing and that won't work for arrays > 65533 bytes in size. Whereas
with -b0 you can address arrays up to two gigabytes. Be careful though
of preallocated arrays that are huge because it makes loading the code
at run time difficult if the memory space is fragmented. Often it is
better to use malloc() or calloc() to allocate those arrays. With MANX
I believe the latter is your only option at this time.
--Chuck McManis
uucp: {anywhere}!sun!cmcmanis BIX: cmcmanis ARPAnet: cmcmanis@sun.com
These opinions are my own and no one elses, but you knew that didn't you.
Technical Details
Message-ID:
<78840@sun.uucp>Path:
arc1-ca.pugleaf.net!utzoo!attcan!uunet!seismo!sundc!pitstop!sun!pepper!cmcmanisReferences:
<652@helios.toronto.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!seismo!sundc!pitstop!sun!pepper!cmcmanis From: cmcmanis%pepper@Sun.COM (Chuck McManis) Newsgroups: comp.sys.amiga.tech Subject: Re: Large arrays in Lattice V4.0 Message-ID: <78840@sun.uucp> Date: 22 Nov 88 22:11:40 GMT References: <652@helios.toronto.edu> Sender: news@sun.uucp Reply-To: cmcmanis@sun.UUCP (Chuck McManis) Organization: Sun Microsystems, Mountain View Lines: 22