This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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



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