comp.lang.ada
 help / color / mirror / Atom feed
From: dewar@cs.nyu.edu (Robert Dewar)
Subject: Re: GNAT Ada for DOS - Reading Integers Problem
Date: 1996/02/21
Date: 1996-02-21T00:00:00+00:00	[thread overview]
Message-ID: <dewar.824906918@schonberg> (raw)
In-Reply-To: 4gdivm$10f5@watnews1.watson.ibm.com

Norman says

"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."

That's wrong, if a compiler DOES allow this compile time control, then
normal change-of-representation coding (i.e. have two derived types, one
with one bit order and one with the other, and use conversions to flip
between the two) should work fine.

Implementing the unnatural order is non-trivial (and implementing the
above change of representation even more non-trivial). Furthermore the
RM does not require this feature be implemented, so don't count on it
being available!





  reply	other threads:[~1996-02-21  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
1996-02-21  0:00       ` Robert Dewar [this message]
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