Programming Language for Beginners

James A. Morrison ja2morri@csclub.uwaterloo.ca
Fri Sep 10 16:54:00 GMT 2004


Paul Brook <paul@codesourcery.com> writes:

> > Which front end would be the best one to look at to understand
> > how the tree-ssa interface works? Which one woule be the best one
> > to copy for a new front end?
> 
> I'd say the Fortran frontend, but I'm biased:)
> The Fortran frontend has been recently rewritten. It uses custom data 
> structures while parsing, then translates these into GENERIC trees once a 
> whole program unit has been parsed.

 The Fortran frontend is a good example.  The treelang frontend also works and
may be a bit simpler to start with.
 
> > Which front end would be the best one to look at to understand
> > how the tree-ssa interface works? Which one woule be the best one
> > to copy for a new front end?

 If you are going to copy stuff you may want to take the Treelang frontend as
you are going to have to rip it apart anyway.

> The C and C++ frontends can be confusing because they extend the "tree" 
> structures and use them for parsing. These are then transformed into GENERIC. 
> This results in slightly different semantics depending where in the sompiler 
> you happen to be.
> I'm not sure what the Java frontend looks like.
> Ada hasn't recovered from the tree-ssa merge, so I'd stay well clear.
> 
> Paul
> 


-- 
Thanks,
Jim

http://www.student.cs.uwaterloo.ca/~ja2morri/
http://phython.blogspot.com
http://open.nit.ca/wiki/?page=jim



More information about the Gcc mailing list