|
| | Subject: | Re: Debugging Macros | | Group: | Gcc-help | | From: | Tom Browder | | Date: | 23 Jan 2008 |
On Jan 23, 2008 6:13 AM, Andrew Haley <aph> 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.
-Tom
|