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 ?


Joel Sherrill wrote:
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.

I think the original poster wanted info even on compilers he didn't have installed. Grepping through the config directory of the gcc source tree as I suggested is messy, but will give a pretty good idea of all the predefined symbols out there (though it can't show any added by distributors, e.g. Montavista, but not yet contributed to the main tree). - 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]