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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,ab36006a122bb868 X-Google-Attributes: gid103376,public From: Keith Thompson Subject: Re: Overlay allowability Date: 2000/05/01 Message-ID: #1/1 X-Deja-AN: 618132312 Sender: kst@king.cts.com References: <390D94FB.D23390D4@lmco.com> <390DCBB2.CE2C1609@averstar.com> X-Trace: thoth.cts.com 957243031 53805 205.163.0.22 (2 May 2000 04:50:31 GMT) Organization: CTS Network Services Newsgroups: comp.lang.ada X-Complaints-To: newsmaster@cts.com Date: 2000-05-01T00:00:00+00:00 List-Id: Tucker Taft 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 San Diego Supercomputer Center <*> Welcome to the last year of the 20th century.