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

Subject: Re: Why does sizeof give me... Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Precedence: bulk >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!