Re: A C compiler written in C targeting C

derek@knosof.co.uk (Derek M Jones)
28 Mar 1999 16:58:29 -0500

          From comp.compilers

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)
Re: A C compiler written in C targeting C gillga@ilk.de (1999-05-16)
| List of all articles for this month |

From: derek@knosof.co.uk (Derek M Jones)
Newsgroups: comp.compilers
Date: 28 Mar 1999 16:58:29 -0500
Organization: Knowledge Software Ltd
References: 99-03-067
Keywords: C, storage, optimize

dg@tao.co.uk "David Given" writes:
> Are there any compilers (lcc, gcc) around that have C back ends? Are
> there any type analysis tools around that can be modified to write out
> the code once they've read it in (because I don't need a fully fledged
> code generator)? Am I going at this in completely the wrong way?


Many years ago I was involved in a C to Formal language translator
(www.knosof.co.uk/ctop.html gives some flavour). This formal language
did not have pointers at all.


We found that in many cases it was possible to enumerate what a
pointer pointed at (and in a lot of cases this was a single object).
You could improve the quality of generated code if you could replace a
pointer by the pointed to object.


derek
--
Derek M Jones tel: +44 (0) 1252 520 667
Knowledge Software Ltd mailto:derek@knosof.co.uk
Applications Standards Conformance Testing http://www.knosof.co.uk


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.