From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,963c446b36150167 X-Google-Attributes: gid111c93,public X-Google-Thread: f9b51,963c446b36150167 X-Google-Attributes: gidf9b51,public X-Google-Thread: 1103af,963c446b36150167 X-Google-Attributes: gid1103af,public X-Google-Thread: 1014db,963c446b36150167 X-Google-Attributes: gid1014db,public From: "Dann Corbit" Subject: Re: max. array size GNU C compiler... Date: 1999/08/19 Message-ID: #1/1 X-Deja-AN: 514861147 Content-Transfer-Encoding: 7bit References: <37BC4252.F83CD3E@ekkinc.com> X-Priority: 3 Content-Type: text/plain; charset="iso-8859-1" X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 X-Trace: client 935099986 38.168.214.175 (Thu, 19 Aug 1999 17:59:46 EDT) X-MSMail-Priority: Normal MIME-Version: 1.0 NNTP-Posting-Date: Thu, 19 Aug 1999 17:59:46 EDT Newsgroups: comp.lang.c,comp.os.linux.setup,comp.os.linux.misc,comp.os.linux.alpha EKK wrote in message news:37BC4252.F83CD3E@ekkinc.com... > What is the maximum array size, using GNU C compiler? > > It looks like g77 complains after about 12000000. Assuming doubles, that's about 100 megabytes. Do you have: 0. 100 megs of memory? 1. User rights to a block that large? g77 is a Fortran compiler. Why are you asking in news:comp.lang.c? > I'm considering getting an Alpha system with 2GB RAM, but > don't know if I'll be able to compile software to handle > it. > Would a 64-bit system make a difference? I would guess the > compilers would have to be re-written. There are definitely compilers that will allocate huge amounts of memory. For a problem that large, you should seriously consider looking into commercial optimizing compilers. KAP has a preprocessor for Fortran. It could make a considerable difference in performance. > Is there a commercial compiler which could handle this > size? Probably. But we have no idea what architecture you are using. I think you'de be hard pressed to find one for (for instance) CP/M. > Anybody got any idea? I had never considered a 64-bit > system such as Alpha before, but now might be the time... We use them here, and I love them. But we Run OpenVMS and commercial compilers. I have no idea how G77 would fare on such a beast. > Anybody using g77 on Alpha, do you know if there is a > limitation? Try one of the Fortran groups after reading their FAQ first. -- C-FAQ: http://www.eskimo.com/~scs/C-faq/top.html "The C-FAQ Book" ISBN 0-201-84519-9 C.A.P. Newsgroup http://www.dejanews.com/~c_a_p C.A.P. FAQ: ftp://38.168.214.175/pub/Chess%20Analysis%20Project%20FAQ.htm