Related articles |
---|
A C compiler written in C targeting C dg@tao.co.uk (1999-03-23) |
Re: A C compiler written in C targeting C mikee@cetasoft.cog (1999-03-28) |
Re: A C compiler written in C targeting C kadhim@lucent.com (Basim Kadhim) (1999-03-28) |
Re: A C compiler written in C targeting C nshaf@intur.net (Nick Shaffner) (1999-03-28) |
Re: A C compiler written in C targeting C dmk42@my-dejanews.com (1999-03-28) |
Re: A C compiler written in C targeting C derek@knosof.co.uk (1999-03-28) |
Re: A C compiler written in C targeting C eclectictech@usa.net (1999-03-28) |
Re: A C compiler written in C targeting C dg@tao.co.uk (1999-04-01) |
Re: A C compiler written in C targeting C zalman@netcom.com (1999-04-03) |
[1 later articles] |
From: | Basim Kadhim <kadhim@lucent.com> |
Newsgroups: | comp.compilers |
Date: | 28 Mar 1999 16:55:59 -0500 |
Organization: | Lucent Technologies |
References: | 99-03-067 |
Keywords: | C, storage |
David Given wrote:
>
> What I want to do is write a C compiler that changes the pointer
> semantics of the program, emitting another program that I can feed
> into GEOS' odd C compiler.
I might suggest using the Eli compiler construction toolset. An ANSI C
specification already exists for it and it includes an unparsing tool
that will allow you to recreate the input with your modifications. In
Eli, you would use attribute grammar computations to specify how you
want to change the output.
I have written a source-to-source C translator that does something
similar in Eli and manages to preserve things like comments to make
your output more readable.
More information about Eli can be found at
http://www.cs.colorado.edu/~eliuser.
Basim Kadhim
Return to the
comp.compilers page.
Search the
comp.compilers archives again.