From: | chris dollin <ehog.hedge@googlemail.com> |
Newsgroups: | comp.compilers |
Date: | Sat, 22 Jan 2011 11:59:29 +0000 |
Organization: | Compilers Central |
References: | 11-01-082 11-01-088 11-01-092 |
Keywords: | code |
Posted-Date: | 22 Jan 2011 20:59:52 EST |
"Tony" <nospam@myisp.net> said:
> I am surprised (kinda) to see how many people consider C a suitable
> compile-to language when it really is only good for C-derivatives. C++
> is one of those, so cfront was adequate, for awhile. For languages
> that depart from C-likeness, it is not suitable at all.
The language Pepper I designed as a Pop11-derivative can be thought of
as "Lisp with an open stack" and I had a reasonable Pepper-to-C
implementation. "Not suitable at all" seems a bit of a stretch.
It helps that Pepper has no non-local gotos or an exception mechanism.
The design for full lexical scoping was not implemented but the
primitive it would have used -- partial application, ie a kind of
currying -- was; not implementing was mere laziness on my part.
So likely it all depends on what value one places on different
implementation characteristics.
Chris
--
Chris "allusive" Dollin
Return to the
comp.compilers page.
Search the
comp.compilers archives again.