This is the mail archive of the
mailing list for the GCC project.
Re: Questions about modifing AST.
On 28-Oct-2002, Eric Tang <email@example.com> wrote:
> > On 27-Oct-2002, Eric Tang <firstname.lastname@example.org> wrote:
> > > i want to convert floating point to fixed point arithmetics
> > > in compiler level.
> > If you want to do this, it's better to write a pass which operates
> > directly on GCC's AST representation, rather than trying to read
> > in the AST from the dump file (which won't work, IIUC, because the dump
> > file is deliberately incomplete).
> If i want to operate directly on GCC's AST, i need to modify
> the source code of gcc??
> since i don't want to modify the
> gcc compiler and want to do it seperately. So it is more
GCC has been deliberately designed so that that approach won't work.
Fergus Henderson <email@example.com> | "I have always known that the pursuit
The University of Melbourne | of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh> | -- the last words of T. S. Garp.