Generation of GENERIC tree

Andrew Haley aph@redhat.com
Wed Jun 24 09:56:00 GMT 2009


charfi asma wrote:
>     

> I am interested too in the GENERIC
> tree
> I compile hello.cpp using g++
> -fdump-tree-all, I do not get a generic intermediate representation,
> there was (.tu, .class, .original, .gimple, .vcg ...)
> To look at the GENERIC tree, I
> compile hello.java using gcj (as mentioned in the answer bellow: "I
> recommend looking at any gcc frontend other than the C/C++ frontends
> to see how it is done....")
> But when I compile java file using
> the same option (fdump-tree-all) I do not get .generic as I expect..
> Before .gimple, gcj generate only .original

That's right.  gcj transforms its front-end trees straight into GIMPLE.  I
can't see any purpose to going via GENERIC.

Andrew.



More information about the Gcc-help mailing list