comp.lang.ada
 help / color / mirror / Atom feed
From: ncohen@watson.ibm.com (Norman H. Cohen)
Subject: Re: GNAT Ada for DOS - Reading Integers Problem
Date: 1996/02/20
Date: 1996-02-20T00:00:00+00:00	[thread overview]
Message-ID: <4gdivm$10f5@watnews1.watson.ibm.com> (raw)
In-Reply-To: Dn33HL.ICr@lazrus.cca.rockwell.com

In article <Dn33HL.ICr@lazrus.cca.rockwell.com>, dahaverk@cca.rockwell.com
(Dave Haverkamp) writes: 

|> For ada95 look at the "Bit_Order" attribute.
|>
|>      for T'Bit_Order use Highest_Bit_First;
|>
|>      or
|>
|>      for T'Bit_Order use Lowest_Bit_First;
|>
|>
|> I'm not sure this will help in your application.  But you definitely
|> need to flip the bits around.

No, the purpose of the 'Bit_Order attribute is not to perform
big-endian/little-endian data conversion at run-time, but to assert that
bit numbers in record-representation clauses should be interpreted at
compile time according to either big-endian or little-endian conventions.

--
Norman H. Cohen    ncohen@watson.ibm.com




  reply	other threads:[~1996-02-20  0:00 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <4g2efj$d5d@susscsc1.rdg.ac.uk>
     [not found] ` <tgmDMwoGx.B04@netcom.com>
1996-02-20  0:00   ` GNAT Ada for DOS - Reading Integers Problem Dave Haverkamp
1996-02-20  0:00     ` Norman H. Cohen [this message]
1996-02-21  0:00       ` Robert Dewar
1996-02-21  0:00         ` Norman H. Cohen
1996-02-21  0:00           ` Robert Dewar
1996-02-23  0:00           ` Robert A Duff
1996-02-23  0:00             ` Robert Dewar
     [not found]         ` <Dn8ItA.B9H@world.std.com>
1996-02-23  0:00           ` Robert Dewar
1996-02-24  0:00 ` Tore Joergensen
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox