Path: 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

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