This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
RE: Altera NIOS II Support
Hi,
> But I didn't see anything that would make this a configure option,
> nor a note pointing out that the decision needs to be made
> (just the implication in the #if-else). That is, how does the
> user choose which endianess they're going to build with?
By passing -EB or -EL to GCC, which then defines the relevant macros.
touch foo.h
nios2-elf-cpp -dM foo.h -EB
Will show you what the compiler defines.
Cheers,
Jon