comp.lang.ada
 help / color / mirror / Atom feed
From: Keith Thompson <kst@cts.com>
Subject: Re: Overlay allowability
Date: 2000/05/01
Date: 2000-05-01T00:00:00+00:00	[thread overview]
Message-ID: <yecg0s1lfmw.fsf@king.cts.com> (raw)
In-Reply-To: 390DCBB2.CE2C1609@averstar.com

Tucker Taft <stt@averstar.com> writes:
> "Marc A. Criley" wrote:
[...]
> >   N : Natural;
> > 
> >   SN : Stream_Element_Array(1..N'Size / System.Storage_Unit);
> >   for SN'Address use N;
> 
> I presume you meant:  for SN'Address use N'Address.
> 
> Also, N'Size/System.Storage_Unit is not what you want, probably.  
> More likely is:
>     (N'Size + System.Storage_Unit - 1)/System.Storage_Unit
> 
> I.e., round the division up.
> 
> N'Size is probably going to be 31 on your typical 32-bit computer.

Actually, I think N'Size is more likely to be 32, though Natural'Size
is likely to be 31.  A standalone object (like N in the example) is
almost certain to occupy a whole number of storage units, and to be
aligned on a storage-unit boundary.

-- 
Keith Thompson (The_Other_Keith) kst@cts.com  <http://www.ghoti.net/~kst>
San Diego Supercomputer Center           <*>  <http://www.sdsc.edu/~kst>
Welcome to the last year of the 20th century.




  parent reply	other threads:[~2000-05-01  0:00 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-05-01  0:00 Overlay allowability Marc A. Criley
2000-05-01  0:00 ` tmoran
2000-05-01  0:00 ` Ted Dennison
2000-05-03  0:00   ` Samuel T. Harris
2000-05-03  0:00     ` Ted Dennison
2000-05-03  0:00     ` Robert A Duff
2000-05-04  0:00     ` Robert Dewar
2000-05-08  0:00       ` Samuel T. Harris
2000-05-08  0:00         ` Robert Dewar
2000-05-09  0:00           ` Samuel T. Harris
2000-05-09  0:00             ` Ted Dennison
2000-05-10  0:00               ` Marc A. Criley
2000-05-11  0:00                 ` tmoran
2000-05-12  0:00                   ` tmoran
2000-05-01  0:00 ` Tucker Taft
2000-05-01  0:00   ` mark_biggar
2000-05-01  0:00   ` Keith Thompson [this message]
2000-05-08  0:00     ` Tucker Taft
2000-05-03  0:00   ` Robert I. Eachus
2000-05-02  0:00 ` Robert I. Eachus
2000-05-03  0:00   ` Marc A. Criley
replies disabled

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