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=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no 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 Received: by 10.68.74.201 with SMTP id w9mr9274256pbv.0.1328627073496; Tue, 07 Feb 2012 07:04:33 -0800 (PST) Path: lh20ni270826pbb.0!nntp.google.com!news1.google.com!postnews.google.com!f5g2000yqm.googlegroups.com!not-for-mail From: Mark Lorenzen Newsgroups: comp.lang.ada Subject: Re: Help needed - Upper Bound of an array - Question. Date: Tue, 7 Feb 2012 07:04:33 -0800 (PST) Organization: http://groups.google.com Message-ID: <0e748c14-2e75-4484-8045-98b02e5ef045@f5g2000yqm.googlegroups.com> References: <9203a648-af0d-45a1-87ba-67373435b391@k10g2000yqk.googlegroups.com> NNTP-Posting-Host: 193.163.1.105 Mime-Version: 1.0 X-Trace: posting.google.com 1328627073 14899 127.0.0.1 (7 Feb 2012 15:04:33 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 7 Feb 2012 15:04:33 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: f5g2000yqm.googlegroups.com; posting-host=193.163.1.105; posting-account=Srm5lQoAAAAEMX9rv2ilEKR6FDPapmSq User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-Header-Order: HUALENKRC X-HTTP-UserAgent: Mozilla/5.0 (Windows NT 5.1; rv:10.0) Gecko/20100101 Firefox/10.0,gzip(gfe) Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Date: 2012-02-07T07:04:33-08:00 List-Id: On 7 Feb., 15:41, adacrypt wrote: > My problem is this. =A0I need to test the frequency of the ciphertext > which is sometimes a long string of large positive integers of 7 or 8 > digits in magnitude and to do that I need an array that will > accommodate up to 10,000,000 elements ideally. I take it that the size of the array then will be up to 10,000,000 times 8 octets =3D approx 80 Mb. Is that true? > I have already found out that I cannot go more than 500,000 elements > in the array size. =A0My computer has 32-bit architecture. Probably true. > What I need to know from some kind person is this - Is the array size > a property of the Ada-95 language or the computer? It is not a restriction imposed on you by the Ada language, but the environment under which your program is runnning. By environment I mean the operating system. How is memory for the array allocated? If it is allocated on the stack, then you could easily hit the maximum stack size allowed by your environment. > I need to know this before resorting to a 64-bit computer which might > not solve the problem and be an expensive mistake. A 32-bit environment can easily address 80 Mb of data. Regards, Mark L