I am working with gcc-3.3.3, and I want to insert my module after construction of AST and before RTL generation.


Rajesh

On Sat, 12 Mar 2005, Diego Novillo wrote:

On 03/12/05 08:14, Rajesh Babu wrote:

I want the root node of the AST built by gcc, so that I can do the manipulations I want to do on the intermediate nodes of AST. Can someone tell me where I can find the root node of AST and the place where the construction of AST finishes in GCC source.

If you are working in mainline or GCC 4.0, start with tree-optimize.c:init_tree_optimization_passes. There's documentation about writing your own passes in doc/tree-ssa.texi.


Diego.

Reply via email to