From: "David C. Hoos, Sr." <david.c.hoos.sr@ada95.com>
Subject: Re: Problem with representation clause
Date: 1997/12/09
Date: 1997-12-09T00:00:00+00:00 [thread overview]
Message-ID: <66jdsu$q9n$1@polo.advicom.net> (raw)
In-Reply-To: mheaney-ya023680000812972317260001@news.ni.net
Matthew Heaney wrote in message ...
>In article <66gvas$pmp@remus.rutgers.edu>, castroto@remus.rutgers.edu
>(Fabrizio Castrotorres) wrote:
>
>Try adding the Component_Size attribute too.
>
The Component_Size attribute makes no difference in the resulting size;
The implementation advice of the Ada95 LRM 13.3(73) says
An implementation should support specified Component_Sizes that are factors
and multiples of the word size. For such Component_Sizes, the array should
contain no gaps between components. For other Component_Sizes (if
supported), the array should contain no gaps between components when packing
is also specified; the implementation should forbid this combination in
cases where it cannot support a no-gaps representation.
Perhaps the operative words here are "advice" and "should"
At any rate, a two dimensional array declared as
type Global_Integrity_Array_2 is array( Slot_Number, Slot_Number ) of
Measurement_Status_Value;
pragma Pack(Global_Integrity_Array_2);
yields a size of 1152 bits with gnat-3.10p
David C. Hoos, Sr.
david.c.hoos.sr@ada95.com
next prev parent reply other threads:[~1997-12-09 0:00 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-12-08 0:00 Problem with representation clause Fabrizio Castrotorres
1997-12-08 0:00 ` Matthew Heaney
1997-12-09 0:00 ` David C. Hoos, Sr. [this message]
1997-12-08 0:00 ` Jeff
1997-12-09 0:00 ` David C. Hoos, Sr.
1997-12-09 0:00 ` David C. Hoos, Sr.
1997-12-10 0:00 ` Aaro Koskinen
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox