Re: Using C as a back end

nr@labrador.eecs.harvard.edu (Norman Ramsey)
22 Oct 2000 01:32:23 -0400

          From comp.compilers

Related articles
Using C as a back end predictor@my-deja.com (Pred.) (2000-10-19)
Re: Using C as a back end jim.granville@designtools.co.nz (Jim Granville) (2000-10-22)
Re: Using C as a back end peteg@cse.unsw.edu.au (Peter Gammie) (2000-10-22)
Re: Using C as a back end frido@q-software-solutions.com (Friedrich Dominicus) (2000-10-22)
Re: Using C as a back end joachim_d@gmx.de (Joachim Durchholz) (2000-10-22)
Re: Using C as a back end jacob@jacob.remcomp.fr (jacob navia) (2000-10-22)
Re: Using C as a back end nr@labrador.eecs.harvard.edu (2000-10-22)
Re: Using C as a back end sjmeyer@www.tdl.com (2000-10-23)
Re: Using C as a back end lazzaro@cs.berkeley.edu (2000-10-23)
Re: Using C as a back end predictor@my-deja.com (Pred.) (2000-10-23)
Re: Using C as a back end predictor@my-deja.com (Pred.) (2000-10-23)
Re: Using C as a back end sweeks@my-deja.com (Stephen T. Weeks) (2000-10-23)
Re: Using C as a back end jaidi@fos.ubd.edu.bn (Pg Nor Jaidi Pg Tuah) (2000-10-26)
[22 later articles]
| List of all articles for this month |
From: nr@labrador.eecs.harvard.edu (Norman Ramsey)
Newsgroups: comp.compilers
Date: 22 Oct 2000 01:32:23 -0400
Organization: Harvard University
References: 00-10-148
Keywords: translator

Pred. <predictor@my-deja.com> wrote:
>I have designed a language for which I'm hoping to create a compiler.
>Since I want a portable solution I was thinking about using a
>retargable C or C++ compiler in the back end along with appropriate
>assembler / linkers. Is this a good solution?


It's a pretty good solution if
    * your language doesn't have garbage collection, or you're willing
        to use the marvellous Boehm/Weiser/Demers conservative collector
    * your language doesn't have exceptions, or they can be expensive
    * you don't care much about source-level debugging
Otherwise, you're more or less out of luck.
(But check out www.cminusminus.org for an alternative that might be
available sometime next year.)
--
Norman Ramsey
http://www.eecs.harvard.edu/~nr


Post a followup to this message

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