This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
RE: About link to GCC predefined macro
- From: "John \(Eljay\) Love-Jensen" <eljay at adobe dot com>
- To: "Yuanfei guo" <yuanfei8077 at gmail dot com>, <gcc-help at gcc dot gnu dot org>
- Date: Sat, 7 Oct 2006 06:49:31 -0700
- Subject: RE: About link to GCC predefined macro
- References: <b153b8aa0610070621u4f821ad7vb2972996ff215ead@mail.gmail.com>
Hi Kelvin,
>I wonder if there is a webpage where all the predefined macros(such as __x86_64__, __i386__) GCC supported are listed ?
You can generate your own list of predefined macros GCC provides, since they may vary a bit by version and by platform:
For C:
echo "" | gcc -E -dM -x c - | sort
For C++:
echo "" | g++ -E -dM -x c++ - | sort
HTH,
--Eljay