This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: =?gb2312?B?u9i4tDogT25lIHF1ZXN0aW9u?=



>Let's stick to the standard terminology for this:  The Intel x86 architecture
>is little-endian, which means that the low-order bit are considered "first".
>(The low-ordered byte is the one with the smallest byte address.)
>The same is true for the Vax, the Alpha, and other systems.
>
>The Macintosh, Suns, and many other architectures are big-endian, which
>means that the high-rder bit (and byte) are "first".

To clear this up:

Little-endian BYTE order means that the lowest byte addressed contains
the LEAST significant bits of a multibyte value.

Big-endian BYTE order means that the lowest byte addressed contains
the MOST significant bits of a multibyte value.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]