From: Tucker Taft <stt@averstar.com>
Subject: Re: Rep-spec question
Date: 1999/11/10
Date: 1999-11-10T00:00:00+00:00 [thread overview]
Message-ID: <3829E153.F05C89B0@averstar.com> (raw)
In-Reply-To: 80ck3b$deu$1@nnrp1.deja.com
Joe Wisniewski wrote:
>
> Given the following:
>
> type Rec is
> b : boolean;
> end record;
>
> for rec use record
> b at 0 range 0..63;
> end record;
> for rec'size use 64;
>
> can any assumptions be made as to where the
> byte(s) representing the boolean are stored?
You can pretty safely assume that an enumeration value is stored in
the low-order bits of the 64-bit component you have specified. I would
expect this only to be supported on implementations that support
64-bit integers.
Another interesting question is what are the representations of False and
True. I suspect that on some targets, True is all ones, while False is
zero. On such a target, the answer to your question is "any byte". ;-)
>
> Joe
-Tuck
--
-Tucker Taft stt@averstar.com http://www.averstar.com/~stt/
Technical Director, Distributed IT Solutions (www.averstar.com/tools)
AverStar (formerly Intermetrics, Inc.) Burlington, MA USA
next prev parent reply other threads:[~1999-11-10 0:00 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-11-10 0:00 Rep-spec question Joe Wisniewski
1999-11-10 0:00 ` Tucker Taft [this message]
1999-11-11 0:00 ` Robert A Duff
1999-11-10 0:00 ` Ted Dennison
1999-11-10 0:00 ` Joe Wisniewski
1999-11-10 0:00 ` Ted Dennison
1999-11-11 0:00 ` Robert Dewar
1999-11-11 0:00 ` Ted Dennison
1999-11-12 0:00 ` Robert Dewar
1999-11-11 0:00 ` Robert A Duff
1999-11-12 0:00 ` Robert Dewar
1999-11-11 0:00 ` Keith Thompson
1999-11-12 0:00 ` Robert A Duff
1999-11-12 0:00 ` Robert Dewar
1999-11-12 0:00 ` Nick Roberts
1999-11-10 0:00 ` Robert A Duff
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox