TEAM-ADA Archives

Team Ada: Ada Programming Language Advocacy

TEAM-ADA@LISTSERV.ACM.ORG

Options: Use Classic View

Use Proportional Font
Show Text Part by Default
Show All Mail Headers

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

Print Reply
Pat Rogers <[log in to unmask]>
Fri, 16 Oct 1998 17:15:44 -0500
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
use,
>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

http://www.classwide.com/products/freestuf.htm


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

ATOM RSS1 RSS2