This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: More LITTLE_ENDIAN_DATA ???'s
On Fri, Aug 03, 2001 at 05:26:39PM -0400, Barry Andreasen wrote:
> Can someone describe for me what the __LITTLE_ENDIAN_DATA__ directive does
> in gcc/config/sparc/sparc.h?
Err, nothing? It's not a directive. It exists for the compiled
program to test, not for the compiler to do anything with.
> What is the relationship between this and the __LITTLE_ENDIAN__ directove
> sprinkled throughout the code?
"sprinkled throughout"? It appears exactly once. Anyway,
__LITTLE_ENDIAN__ means little-endian code and data,
__LITTLE_ENDIAN_DATA__ means big-endian code and little-endian data.
Some of the Fujitsu parts have these sorts of modes.
I don't think the TI or Ross parts do.
r~