This is the mail archive of the
mailing list for the GCC project.
Re: gcc 3.0
On Sat, Sep 08, 2001 at 04:02:50PM -0500, N V Krishna wrote:
> I was looking at the 3.0 gcc code. And was wondering if there are
> options/switches by which I can print the intermediate tree representation?
> The other point I wanted to ask was how do you debug, gcc with so many macros?
If you look in gcc/gcc/gdbinit.in, you will see some gdb
macros which call some internal debugging functions.
pt calls debug_tree
pr calls debug_rtx
ptc prints the tree code of a node
In terms of dumping stuff to a file, you might want
to look at the gcc manual:
There are some flags:
-dR, -dr, -di and others that allow you to dump RTL to a file.