This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: gcc option -E
- From: Brian Dessent <brian at dessent dot net>
- To: Lin George <george4academic at yahoo dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Fri, 12 Oct 2007 08:07:15 -0700
- Subject: Re: gcc option -E
- References: <660425.45693.qm@web32102.mail.mud.yahoo.com>
- Reply-to: gcc-help at gcc dot gnu dot org
Lin George wrote:
> I have tried that in ListDef file (new generated after either of the two commands) and it contains several hundred lines of #define, typedef and some other definitions. Could anyone help to answer what is the function of the two commands? Differences between -dM and -dD?
The -E option enables preprocessing only. Every option is documented in
the manual:
http://gcc.gnu.org/onlinedocs/gcc/Option-Index.html
http://gcc.gnu.org/onlinedocs/gcc/Preprocessor-Options.html
As for why you'd want a file containing a list of all the #defines,
you'd have to look at the context of how it's used elsewhere in the
build system. There's no way to know based only on what you've given.
Brian