This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


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: Macros automatically defined by GCC?


On 1/25/06, Jim Stapleton <stapleton.41@gmail.com> wrote:
> I was looking through the GCC documentation trying to see what macros
> I could find that were automatically defined, but I couldn't find an
> comprehensive list of all of them, I could only find some to fit some
> situations.

Not sure whether this will help you, but the following command dumps
all macros predefined by GCC:

$ gcc -E -dM -xc /dev/null

You might also want to check this website: predef.sourceforge.net

Bye.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]