TEAM-ADA Archives

Team Ada: Ada Programming Language Advocacy


Options: Use Classic View

Use Monospaced Font
Show Text Part by Default
Condense Mail Headers

Topic: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Content-Transfer-Encoding: 7bit
Sender: "Team Ada: Ada Advocacy Issues (83 & 95)" <[log in to unmask]>
From: Pat Rogers <[log in to unmask]>
Date: Fri, 16 Oct 1998 17:15:44 -0500
Content-Type: text/plain; charset="iso-8859-1"
MIME-Version: 1.0
Reply-To: Pat Rogers <[log in to unmask]>
Parts/Attachments: text/plain (23 lines)
>I would not rely on specifying the bit_order.  On the other hand,
>the value of the Default_Bit_Order constant can be useful in
>a record representation clause to control the bit positions you
>when combined with tricks using multiplication and Boolean'Pos().
>This is of course left as an exercise to the reader...
>-Tucker Taft

I use a package based on one by Norm Cohen (from an Ada Letters
article) with the addition of the Default_Bit_Order so the constants
don't need changing for different targets.  I've put it out for
general consumption at

Pat Rogers                            Training and Consulting in:      Deadline Schedulability Analysis
[log in to unmask]                   Software Fault Tolerance
(281)648-3165                        Real-Time/OO Languages