From: | toby <toby@telegraphics.com.au> |
Newsgroups: | comp.compilers |
Date: | Wed, 25 Feb 2009 09:40:31 -0800 (PST) |
Organization: | Compilers Central |
References: | 09-02-021 09-02-025 09-02-031 |
Keywords: | code |
Posted-Date: | 25 Feb 2009 14:29:23 EST |
On Feb 11, 7:07 am, "Bartc" <ba...@freeuk.com> wrote:
> "Mike Burrell" <mbur...@uwo.ca> wrote in message
> > On 2009-02-09 05:34:36 -0500, marco.m.peter...@gmail.com said:
>
> >> I mean, if you wrote a program that converts code from BASIC to C++
> >> then calls another compiler to do the compilation process, wouldn't
> >> that be considered as a compiler?
>
> > It depends on what you want to get out of your compiler. A lot of
> > compilers, especially when they're in the proof-of-concept stage, will
> > target another language, such as C. If your primary goal in writing
> > the compiler isn't to worry about the back-end stuff (register
> > allocation and all those fun things), then it's easier to just target
> > C, and you get portability to boot.
>
> I've tried targetting C and it was completely unsatisfactory.
> ...
> So you end up with a target language which is a travesty of C, ...
Like C-- ?
http://www.cminusminus.org/
Return to the
comp.compilers page.
Search the
comp.compilers archives again.