delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/08/20/22:03:10

Date: Thu, 21 Aug 1997 10:00:58 +0800 (GMT)
From: Orlando Andico <orly AT gibson DOT eee DOT upd DOT edu DOT ph>
To: Erik Max Francis <max AT alcyone DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: Why does sizeof give me...
In-Reply-To: <33F68612.5EF83660@alcyone.com>
Message-ID: <Pine.SGI.3.93.970821100000.3598A-100000@gibson>
MIME-Version: 1.0

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 -


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