Date: Thu, 21 Aug 1997 10:00:58 +0800 (GMT) From: Orlando Andico To: Erik Max Francis cc: djgpp AT delorie DOT com Subject: Re: Why does sizeof give me... In-Reply-To: <33F68612.5EF83660@alcyone.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk 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