411 REFERENCE · Wikibooks
Ada Programming/Attributes/'Bit Order:3
Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.
The 'Bit_Order attribute is not intended to convert data between a big-endian and a little-endian machine (it affects bit numbering, not byte order). The compiler will not generate code to reorder multi-byte fields when a non-native bit order is specified. 00133
Controlling bit ordering
binding interpretation
1996-05-07
1.17
Bit_Order clauses are concerned with the numbering of bits and not concerned with data flipping interoperability.13 5 3 Bit Ordering 9/2 I4589 2008-06-02 Bit_Order clauses make it possible to write record_representation_clauses that can be ported between machines having different bit ordering. They do not guarantee transparent exchange of data between such machines. http://www.adacore.com/adaanswers/gems/gem-140-bridging-the-endianness-gap/
Gem #140: Bridging the Endianness Gap
2013-01-31
Thomas Quinot
2013
January
AdaCore
the order in which the bytes that constitute machine scalars are written to memory is not changed by the Bit_Order attribute -- only the indices of bits within machine scalars are changed.
References
Bit Order