From: Jeffrey Carter <spam@spam.com>
Subject: Endian-Independent Rep Clauses (was: Standard Ada Preprocessor)
Date: Mon, 26 Jan 2004 19:20:55 GMT
Date: 2004-01-26T19:20:55+00:00 [thread overview]
Message-ID: <rMdRb.27690$1e.18707@newsread2.news.pas.earthlink.net> (raw)
In-Reply-To: <idadnbdQorZopojdRVn-ig@comcast.com>
Robert I. Eachus wrote:
> Lionel.DRAGHI@fr.thalesgroup.com wrote:
>
>> Could be :
>>
>> - Endian-Safe Record Representation Clauses for Ada programs
>> Mike Mardis, Ada Letters, December 99.
>>
>> or - Endian-Independent Record Representation Clauses
>> Norman H, Cohen, Ada Letters Jan/Feb 94
>
>
> Thanks! It happened to be Norm's paper that I remembered. But I guess
> it must be time to publish such a paper again. ;-)
>
> Actually, I assume that Mike's paper is an update based on Ada 95, and
> that if there are any changes in this area in Ada 0Y, that a new paper
> will be needed.
>
IIRC, it addresses the fact that Default_Bit_Order is static, thanks to
an AI, and uses static universal math based on Boolean'Pos
(Default_Bit_Order = <one_of_the_choices>) to calculate bit positions.
I've done this kind of thing; it requires long expressions for bit
numbers, but works fine.
--
Jeff Carter
"I'm a lumberjack and I'm OK."
Monty Python's Flying Circus
54
next prev parent reply other threads:[~2004-01-26 19:20 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-01-26 13:30 Standard Ada Preprocessor Lionel.DRAGHI
2004-01-26 16:10 ` Robert I. Eachus
2004-01-26 19:20 ` Jeffrey Carter [this message]
2004-01-27 1:03 ` Endian-Independent Rep Clauses Robert I. Eachus
2004-01-27 2:01 ` Stephen Leake
2004-01-27 3:16 ` Robert I. Eachus
2004-01-27 8:10 ` Stephen Leake
2004-01-27 3:34 ` Jeffrey Carter
2004-01-27 8:14 ` Stephen Leake
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox