Re: Big Endian, Little Endian.
  Home FAQ Contact Sign in
comp.lang.c++.moderated only
 
Advanced search
POPULAR GROUPS

more...

 Up
Re: Big Endian, Little Endian.         

Group: comp.lang.c++.moderated · Group Profile
Author: Carl Barron
Date: May 13, 2008 19:20

In article
u12g2000prd.googlegroups.com>,
<"clemd@acm.org"> wrote:
> Mixed endian: other posters have already mentioned the beloved PDP-11.
> In addition to floating point being mixed endian, I recall that long
> (32-bit) was also. But that was by software convention; I don't
> remember any hardware support for 32-bit integers.
>
> No endianness: I don't have an example, but if all primitive datatypes
> have the same size there will be no endianness. In C99 that would mean
> that CHAR_BIT == 64 or more, so that the minimum size long long fits
> into a single character.

Might be off topic, but where does c99 state range of long long
larger than range of int? My reading of the c99 standard states the
same thing as c89 and hence c++98 [and probably later revisions]
regarding sizeof various signed integral types. That is sizeof(X) ==
1 for any integral type X, is legal.
So that if the machine is a 'natural' 32 bit word machine, then
CHAR_BIT == 32 is legal.

--
[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]
no comments
diggit! del.icio.us! reddit!

RELATED THREADS
SubjectArticles qty Group
Gulliver's Travels: Latinate terms for 'Big-endians' and 'Little-endians'?alt.language.latin ·