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,1ff542cf207f32ca X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.189.72 with SMTP id gg8mr14942225pbc.4.1328644298502; Tue, 07 Feb 2012 11:51:38 -0800 (PST) MIME-Version: 1.0 Path: lh20ni271572pbb.0!nntp.google.com!news1.google.com!news.glorb.com!feeder.erje.net!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!gegeweb.org!aioe.org!.POSTED!not-for-mail From: tmoran@acm.org Newsgroups: comp.lang.ada Subject: Re: Help needed - Upper Bound of an array - Question. Date: Tue, 7 Feb 2012 19:51:33 +0000 (UTC) Organization: Aioe.org NNTP Server Message-ID: References: NNTP-Posting-Host: Lf0Nl3CcQzx+ocHx9cmuGg.user.speranza.aioe.org X-Complaints-To: abuse@aioe.org X-Notice: Filtered by postfilter v. 0.8.2 X-Newsreader: Tom's custom newsreader Date: 2012-02-07T19:51:33+00:00 List-Id: > > SUBTYPE Index_30 IS Integer RANGE -500000 .. 500000; > > TYPE I_CoefficientsNumArray IS ARRAY(Index_30) OF Integer; > > I_Num : I_CoefficientsNumArray; > > Here is a 3rd source of limits on the size of the array: the index subtype of > the array, in this case Index_30. Index_30 has 1_000_001 values, so I_Num has > 1_000_001 components. The OP is probably using Gnat, with its very limited stack size. Other Ada compilers are not so limited. Janus, for instance, compiles, and runs on an old 3GB 32 bit Windows XP machine: type Index_30 is range -100_000_000 .. 100_000_000; type Coefficient_Type is new Interfaces.Unsigned_32; TYPE I_CoefficientsNumArray IS ARRAY(Index_30) OF Coefficient_Type; I_Num : I_CoefficientsNumArray; which allocates 800,000,004 bytes.