RE: GCC -dumpmachine informations available as macros ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux