delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/08/22/05:32:57

Message-Id: <3.0.1.16.19970821101525.083f6ba4@mailhost.sm.ic.ac.uk>
Date: Thu, 21 Aug 1997 10:15:25
To: djgpp AT delorie DOT com
From: Paul Dixon <p DOT dixon AT ic DOT ac DOT uk>
Subject: Re: Why does sizeof give me...
Mime-Version: 1.0

>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.
Wrong - I have seen (though I cannot remember which cpu families) byte
orders in a 32 bit integer of

1 2 3 4	(little-endian)
4 3 2 1 (big endian)
2 1 4 3 (_neither_)

and I wouldnt be surprised if somewhere out there some of the other
possible orderings existed!

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019