GCC -dumpmachine informations available as macros ?
John (Eljay) Love-Jensen
eljay@adobe.com
Thu Apr 30 19:24:00 GMT 2009
Hi Vincent De Groote,
> Is there a way to retrieve the target of GCC ( like sparc-sun-solaris2.10 ) from one or more macros available at compilation time ?
Maybe, sort of.
You can use this bash command line to see your GCC's pre-defines:
echo '' | gcc -E -dM -x c - | sort | vi -
That is not quite what you are asking, but might be suitable depending on what you are trying to do.
HTH,
--Eljay
More information about the Gcc-help
mailing list