comp.lang.ada
 help / color / mirror / Atom feed
From: Mark Lorenzen <mark.lorenzen@gmail.com>
Subject: Re: Help needed - Upper Bound of an array - Question.
Date: Tue, 7 Feb 2012 07:04:33 -0800 (PST)
Date: 2012-02-07T07:04:33-08:00	[thread overview]
Message-ID: <0e748c14-2e75-4484-8045-98b02e5ef045@f5g2000yqm.googlegroups.com> (raw)
In-Reply-To: 9203a648-af0d-45a1-87ba-67373435b391@k10g2000yqk.googlegroups.com

On 7 Feb., 15:41, adacrypt <austin.oby...@hotmail.com> wrote:
> My problem is this.  I 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 = approx 80 Mb. Is that true?

> I have already found out that I cannot go more than 500,000 elements
> in the array size.  My 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



  parent reply	other threads:[~2012-02-07 15:04 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-07 14:41 Help needed - Upper Bound of an array - Question adacrypt
2012-02-07 15:00 ` Yannick Duchêne (Hibou57)
2012-02-07 15:04 ` Mark Lorenzen [this message]
2012-02-07 15:08 ` Ludovic Brenta
2012-02-07 15:27   ` Yannick Duchêne (Hibou57)
2012-02-07 15:59   ` adacrypt
2012-02-07 16:13     ` Gautier write-only
2012-02-07 17:30     ` Jeffrey Carter
2012-02-07 19:51       ` tmoran
2012-02-09  3:31         ` Randy Brukardt
2012-02-07 18:22     ` Ludovic Brenta
2012-02-07 20:42       ` adacrypt
2012-02-07 18:56     ` Georg Bauhaus
2012-02-07 21:22     ` Robert A Duff
2012-02-07 15:33 ` Álex R. Mosteo
2012-02-07 22:08 ` Jerry
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox