This is the mail archive of the gcc-help@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]
Other format: [Raw text]

macros to detect endiannes?


Hi,

I have some source that makes assumptions on the endiannes of the
architecture. To make it more portable I'd like write specific code for
both little and big endian machines. Are there any predefined macros that
could be used to detect the endiannes at compile time, that I could use in
conditional compilation?

Thanks,

kf


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