This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.
See the CrossGCC FAQ for lots more information.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Are there any documentation that describes the more generic #defines ?
I.e. Like a #define which is defined if the compiler generates Big Endian code,
or a #define which is defined if int is 32bit.
The idea is to try and write code which will be portable even across future versions
of gcc for 64 bit and other architectures.
There is some notion of endianness defined in #include <endian.h> Not sure how portable that is, though.
Otherwise, autoconf's the place to go for that sort of thing, really. The newer versions of autoconf are pretty good; I use them for detecting endianness at compile time, and they don't rely on any gcc extensions. - Dan
-- Dan Kegel http://www.kegel.com http://counter.li.org/cgi-bin/runscript/display-person.cgi?user=78045
------ Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/ Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |