help-gplusplus
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Endianness


From: Paul Pluzhnikov
Subject: Re: Endianness
Date: Tue, 05 Feb 2008 16:44:26 -0800
User-agent: Gnus/5.1006 (Gnus v5.10.6) XEmacs/21.4 (Jumbo Shrimp, linux)

Larry Smith <lsmith@nospam.com> writes:

> Perhaps the confusion comes from the GCC docs:
>
> PowerPC Options:
>  `-mlittle'
>  `-mbig'
> Similar options are mentioned for SPARC, ARM, MCore, IA-64, etc

Interesting. I didn't realize PPC and SPARC have added bi-endian
capability.

> The docs MAY lead some folks to believe that it is possible.

I guess the literal answer to OPs question "can a compiler setting
change the endianness" is yes, it can. But the endianness of what?

Also, gcc documents '-mlittle-endian' under SPARC, but it doesn't
seem to work for any version of gcc I've tried:

$ gcc -S t.c -m64 -mlittle-endian
cc1: error: invalid option `little-endian'

Cheers,
-- 
In order to understand recursion you must first understand recursion.
Remove /-nsp/ for email.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]