Related articles |
---|
[12 earlier articles] |
Re: backend question whopkins@alpha2.csd.uwm.edu (Mark) (2002-11-24) |
Re: backend question nmm1@cus.cam.ac.uk (Nick Maclaren) (2002-11-24) |
Re: backend question joachim_d@gmx.de (Joachim Durchholz) (2002-11-24) |
Re: backend question nmm1@cus.cam.ac.uk (Nick Maclaren) (2002-11-26) |
Re: backend question fjh@students.cs.mu.OZ.AU (Fergus Henderson) (2002-12-01) |
Re: backend question fjh@students.cs.mu.OZ.AU (Fergus Henderson) (2002-12-01) |
Re: backend question nmm1@cus.cam.ac.uk (Nick Maclaren) (2002-12-03) |
Re: backend question thp@cs.ucr.edu (2002-12-07) |
Backend Question mansuk@gmail.com (Suman Karumuri) (2005-10-07) |
Re: Backend Question gneuner2@comcast.net (George Neuner) (2005-10-08) |
From: | "Nick Maclaren" <nmm1@cus.cam.ac.uk> |
Newsgroups: | comp.compilers |
Date: | 3 Dec 2002 00:39:36 -0500 |
Organization: | University of Cambridge, England |
References: | 02-11-063 02-11-099 02-11-112 02-11-132 02-11-148 02-12-014 |
Keywords: | C, design |
Posted-Date: | 03 Dec 2002 00:39:36 EST |
"Fergus Henderson" <fjh@students.cs.mu.OZ.AU> writes:
|> "Nick Maclaren" <nmm1@cus.cam.ac.uk> writes:
|> >Fergus Henderson <fjh@cs.mu.OZ.AU> wrote:
|> >>"David Chase" <chase@world.std.com> writes:
|> >>
|> >>>Standard C doesn't give you enough control to write a precise garbage
|> >>>collector (one that can see all the pointers, and exactly all the
|> >>>pointers),
|> >>
|> >>It does (albeit with a potentially significant performance cost).
|> >>See my recent paper at ISMM'02 [1].
|> >
|> >Well, I have looked at it but can't say that I have studied it. I
|> >think that you have assumed quite a few extra constraints - mainly of
|> >the form that the C program is half sane!
|>
|> Certainly. But we were talking about using C as a target language.
|> For that case, the high-level language compiler has complete control
|> over what C code is generated.
Then I am puzzled by the original remarks. Any general purpose
language can be used in that way - Fortran II and 66 were, heavily.
As with mathematical Turing machines, any general purpose language can
be compiled into any other, with some niggles about details.
The only question is how many of the features have to be emulated,
which affects the overheads.
|> Note that even assembler doesn't give you enough control to write a
|> precise garbage collector that will work for arbitrary assembler programs!
|> So C is no worse than assembler in that respect.
Agreed.
Regards,
Nick Maclaren,
University of Cambridge Computing Service,
New Museums Site, Pembroke Street, Cambridge CB2 3QH, England.
Email: nmm1@cam.ac.uk
Tel.: +44 1223 334761 Fax: +44 1223 334679
Return to the
comp.compilers page.
Search the
comp.compilers archives again.