Debugging Macros

Tom Browder
Thu Jan 24 11:18:00 GMT 2008

On Jan 23, 2008 6:13 AM, Andrew Haley <> wrote:
> Tom Browder wrote:
> > Is there an easy way (such as defining an environment variable in the
> > build environment) to get the gcc build system to show the
> > preprocessed code to help backtrack the problem?
> Set your CC when running make: "make CC='gcc -g -save-temps -Wp,-dD ...'
> This will give you all macro definitions, expanded in .i files.
> For extra credit, run the .i files through GNU indent.

Thanks, Andrew.


More information about the Gcc-help mailing list