|Source to Source Compiler? Christoph.Niedermeier@zfe.siemens.de (1996-05-10)|
|Re: Source to Source Compiler? firstname.lastname@example.org (Derek M Jones) (1996-05-13)|
|Re: Source to Source Compiler? email@example.com (1996-05-13)|
|Re: Source to Source Compiler? firstname.lastname@example.org (1996-05-14)|
|Re: Source to Source Compiler? email@example.com (Dr. Karl Prott) (1996-05-14)|
|Re: Source to Source Compiler? firstname.lastname@example.org (Norman Culver) (1996-05-19)|
|Re: Source to Source Compiler? email@example.com (1996-05-19)|
|From:||Derek M Jones <firstname.lastname@example.org>|
|Date:||13 May 1996 14:17:29 -0400|
|Organization:||Knowledge Software Ltd|
> We are intending to build a frontend compiler which translates ANSI C
> plus our own extensions to pure ANSI C. Our idea is to use the sources
> of the GNU C-Compiler and modify them such that C code is produced
> instead of assembler code.
> Is there anyone who has done such a job and can give advice? Maybe
> there is even some modified gcc frontend or other software serving
> this purpose ?
Things all depend on your reason for converting to C.
If you are using it as a mechanism to get your code compiled then I
would suggest lcc. Its main advantage over gcc is that there is some
documentation for this compiler (you will have to preprocess your code
first since they don't provide one).
If you are interested in hanging onto the generated C then all
compilers are a poor starting point. 10 years ago we produced a C ->
Pascal translator. It took a lot of effort to make sure the generated
code 'looked' like the original. Check out the page
www.knosof.co.uk/ctoa.html for more info (ok, so this page talks about
translating to Ada).
Derek M Jones tel: +44 (0) 1252 520 667
Knowledge Software Ltd email: email@example.com
Return to the
Search the comp.compilers archives again.