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]

Re: Pre defined #defines for different cross compilers ?



Anton Erasmus wrote:

Where can I get a list of the different predefines defined
by different cross compiler versions of gcc ?
For example __CYGWIN32__ is defined in the cygwin
version of gcc. __unix__ under at least the linux version og
gcc.


For each installed cross or native gcc, try this:


gcc -dM -E - </dev/null

This will print out all the built in cpp predefines based upon the arguments given.
It is also handy for adding CPU model related flags and seeing what predefines
you get.


--joel sherrill




------ 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]