Search code examples
cruntimeembeddable

Embeddable VM runtime for ANSI C


I'm looking for a Virtual Machine runtime environment that is embeddable in any ANSI C code.

I have designed a syntax for a functional language that looks a lot like a stripped version of CoffeeScript. Now I want to write a compiler for this language, but I don't have know what VM I should go for.

The key function for my language is support for closures and of course a sane GC. It should be fairly small.

I have been working with Lua in a couple of projects and I'm investigating the Lua 5.1 VM. However, it seems to be tightly coupled with Luas concept of tables which my language wouldn't utilize.

Any suggestions?


Solution

  • Have you looked at Parrot?

    http://www.parrot.org/