comp.lang.ada
 help / color / mirror / Atom feed
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: <66je9f$q9u$1@polo.advicom.net> (raw)
In-Reply-To: 348CE883.1CEC@bigfoot.com



Jeff wrote in message <348CE883.1CEC@bigfoot.com>...
>Fabrizio Castrotorres wrote:
>  You are running into an 8-bit alignment problem with your first
>  array declaration. The compiler is assigning each element of the
>  array as an 8-bit quanity. Right off hand, I cannot think of a
>  quick fix. If this is a hardware interface, I would redefine the
>  declarations to access the status 8 bits at a time.


Jeff's answer is absolutely wrong:  the declaration
   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.








  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.
1997-12-08  0:00 ` Jeff
1997-12-09  0:00   ` David C. Hoos, Sr. [this message]
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