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]
Other format: [Raw text]

Re: Where can I get the output of the front-end.


Op do 03-04-2003, om 18:09 schreef Matthieu Moy:
> Hi,
> 
> I'm  still trying  to re-use  the  front-end of  GCC to  do some  code
> analysis. (I'm using the tree-ssa branch)
> 
> I begin  to understand how the  data structures are made,  but I don't
> understand *where*, in the programm, they are generated. 
> 
> What I would like to do is
> 
> C++ source -----> SSA tree ---(standard way)----> RTL
>                              \
>                               `---(my add-on)---> ...
> 
> So, I thought of  hacking the ssa -> rtl code, but  I can't find which
> function is doing so in gcc ! 
> 
> Any help appreciated, thanks,

Look at tree-optimize.c, or if you want to hook in after the SSA
optimizers are done, grep for TV_EXPAND in c-decl.c.

Greetz
Steven



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