Front-end Trees
Harry Goulding
yarrh_17@hotmail.com
Mon Mar 14 13:13:00 GMT 2005
Hi All,
I'm writing a front-end to gcc for a very simple programming language using
flex, bison and gcc.
Just wondering if its possible to print out to stdio the tree that's created
using gcc's macros.
Also i want to do some simple optimizations such as constant folding,
arithmetic simplifications.
Does anyone know where i could find some info to do this:
1) Like is it best to do them during parsing.
2) Is it better to construct the tree and then do the optimizations on the
tree (and does gcc provide some useful functions to do these optimizations
on the tree)
Cheers Harry
_________________________________________________________________
Bored at work? Chat, flirt and play with MSN Messenger - FREE download!
http://messenger.msn.co.uk/Beta/Default.aspx
More information about the Gcc-help
mailing list