This is the mail archive of the gcc@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]

Re: gcc 3.0


On Sat, Sep 08, 2001 at 04:02:50PM -0500, N V Krishna wrote:
> Hi,
> 	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:
http://gcc.gnu.org/onlinedocs/gcc-3.0.1/gcc_17.html#SEC171

There are some flags:
-dR, -dr, -di and others that allow you to dump RTL to a file.

-- 
Craig Rodrigues        
http://www.gis.net/~craigr    
rodrigc@mediaone.net          


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