http://www.cminusminus.org/ has pointers to three implementations.
None are 'industrial strength' yet.
You can't really implement C-- on top of C efficiently, because of (a) tail
calls
and (b) the runtime interface for garbage collection, exception handling
etc. But you can do it inefficiently, as the Trampoline C-- compiler does
(see the above URL for pointer to it).
Simon
| -----Original Message-----
| From: Joshua N Pritikin [mailto:[EMAIL PROTECTED]]
| Sent: 03 August 2000 15:01
| To: Simon Peyton-Jones
| Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED];
| [EMAIL PROTECTED]
| Subject: Re: C# (.NET) has no interpreters
|
|
| On Thu, Aug 03, 2000 at 09:32:10AM -0400,
| [EMAIL PROTECTED] wrote:
| > Joshua N Pritikin <[EMAIL PROTECTED]> wrote:
| > > On Wed, Aug 02, 2000 at 07:30:23PM -0400, [EMAIL PROTECTED] wrote:
| > > > I'd prefer us to tackle native code generation using C as the
| > > > intermediate language instead of a JIT.
| > >
| > > Oh, yah. C is the obvious choice, but it doesn't have to
| be the only
| > > backend. In theory we could also generate C#'s IL. Or C--.
| >
| > Help. I'm only halfway through the C-- paper, and I'm wondering:
| > What is the status of implmentations? Why not implement it as
| > extensions to existing C compilers?
|
| Simon, can you comment?
|
| --
| Never ascribe to malice that which can be explained by stupidity.
| (via, but not speaking for Deutsche Bank)
|