Mail Archives: djgpp/1997/08/20/22:03:10
On Sat, 16 Aug 1997, Erik Max Francis wrote:
..
> > variables up into chars or in ASCII. Especially since you can't rely
> > on any byte ordering scheme (I gather there are some machines where a
> > long is held in memory as bytes 2, 1, 4 and 3 or something similar, not
> > even a reversible format).
>
> I don't know offhand, but my understanding is that ANSI C doesn't make any
> determination of the internal respresentation of the bytes in a multi-byte
> integral type (short, int, long). I imagine that there aren't any such
> arbitrary architectures that aren't either little- or big-endian.
There are such architectures. If not I'm mistaken the original Cray
machines used such an arrangement (non-little/non-big).
-------------------------------------------------------------------
Orlando Alcantara Andico
WWW: http://www.dilnet.upd.edu.ph/~orly/ Email: orly AT mozcom DOT com
ICBM: 14 deg. 30' N, 120 deg. 59' E POTS: (+632) 932-2385
- Raw text -