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-7-bit Path: g2news2.google.com!news3.google.com!sn-xt-sjc-04!sn-xt-sjc-06!sn-post-sjc-01!supernews.com!corp.supernews.com!not-for-mail From: "ME" Newsgroups: comp.lang.ada Subject: Re: Largest size array in Gnat 2005 for the PC? Date: Tue, 30 Oct 2007 22:53:43 -0700 Organization: Posted via Supernews, http://www.supernews.com Message-ID: <13ig63p2j2p01c4@corp.supernews.com> References: <13idb3jbm28kfbe@corp.supernews.com> <4726d889$1@news.post.ch> X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.3138 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 X-Complaints-To: abuse@supernews.com Xref: g2news2.google.com comp.lang.ada:2669 Date: 2007-10-30T22:53:43-07:00 List-Id: "Martin Krischik" wrote in message news:4726d889$1@news.post.ch... > ME schrieb: > >> What is the largest array (in storage units) that you can declare in Gnat >> 2005 for the PC? > > How much virtual memory does your computer have? I have ~1500Mb > >> 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: > > http://en.wikibooks.org/wiki/Ada_Programming/Types/array > > and consider what would happen if "Index_Range" is of type > Long_Long_Integer and if you computer has enough memory to hold such a > beast. > > Martin > > PS: There is no "GNAT 2005" - There is > > 1) "GNAT GPL 2005" which is 3 releases old - the current release is GNAT > GPL 2007-2 > 2) Ada 2005: which is a standard and as such puts no restriction or > arrays size whatsoever. > > -- > mailto://krischik@users.sourceforge.net > Ada programming at: http://ada.krischik.com