From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,6b3ebf057333800c X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!news4.google.com!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!ecngs!feeder2.ecngs.de!newsfeed.freenet.de!newsfeed01.chello.at!newsfeed02.chello.at!news.hispeed.ch.POSTED!not-for-mail Message-Id: <1948519.DJ9jiXYulm@linux1.krischik.com> From: Martin Krischik Subject: Re: Largest size array in Gnat 2005 for the PC? Newsgroups: comp.lang.ada Date: Tue, 30 Oct 2007 19:58:53 +0100 References: <13idb3jbm28kfbe@corp.supernews.com> <4726d889$1@news.post.ch> <13ief75sa03m733@corp.supernews.com> User-Agent: KNode/0.10.4 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 8Bit X-Complaints-To: abuse@hispeed.ch Organization: hispeed.ch NNTP-Posting-Host: 84.75.167.107 (84.75.167.107) NNTP-Posting-Date: Tue, 30 Oct 2007 20:19:54 +0100 X-Trace: 2c997472783daf1ee02ce02747 Xref: g2news2.google.com comp.lang.ada:2650 Date: 2007-10-30T19:58:53+01:00 List-Id: ME wrote: >> How much virtual memory does your computer have? >> >>> Does pragma Storage_ size affect this and if so where would you place it >>> in >>> a procedure? >> >> No, the array index used affect the maximum size. I suggest you read: > so then > Type My_Array is array (1..Long_Long_Integer'last) of �record... > is fine? >> No, it means that your computer is running out of memory before GNAT does. Tell me what computer/os you got and I tell you how large your array can be. On most 32 bit OS it will be 2**31 byte. A few selected 32 bit OS it will be 2*32 byte. On a (propper) 64 bit OS your swap file will fill your hardrive first. Martin -- mailto://krischik@users.sourceforge.net Ada programming at: http://ada.krischik.com