Article View: comp.sys.amiga.tech
Article #9280Re: Manx problem with large arrays
From: Scott Evernden
Date: Tue, 12 Jul 1988 02:16
Date: Tue, 12 Jul 1988 02:16
14 lines
1006 bytes
1006 bytes
In article <1795@rtmvax.UUCP> scot@rtmvax.UUCP (Scot Harris ) writes:
>
>main() { static char Map [100000L]; long int i;
>
Manx has for a long time had a bug which prevents arrays larger than
65535 bytes; this (I would guess) is due to the compiler using 16 bit
quantities when formatting the assembly output file.
Sizes larger than 65535 are truncated to 16 bits.
To get around this in the past I have done:
a) malloc() the otherwise static array.
b) generate an .asm file (cc -at), hand edit it, and then 'as' it.
-scott
Technical Details
Message-ID:
<738@applix.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!clyde!bellcore!rutgers!gatech!mandrill!tut.cis.ohio-state.edu!mailrus!husc6!m2c!applix!scottReferences:
<1795@rtmvax.UUCP>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!clyde!bellcore!rutgers!gatech!mandrill!tut.cis.ohio-state.edu!mailrus!husc6!m2c!applix!scott From: scott@applix.UUCP (Scott Evernden) Newsgroups: comp.sys.amiga.tech Subject: Re: Manx problem with large arrays Keywords: Manx C array help Message-ID: <738@applix.UUCP> Date: 12 Jul 88 02:16:51 GMT References: <1795@rtmvax.UUCP> Reply-To: scott@applix.UUCP (Scott Evernden) Organization: APPLiX Inc., Westboro MA Lines: 14