redchrom / lgears

Scheme VM and compiler

This URL has Read+Write access

lgears /
name age message
file .gitignore Loading commit data...
file COPYING Thu Apr 30 03:23:21 -0700 2009 Switched to LGPL 3 [redchrom]
file COPYING.LESSER Thu Apr 30 03:23:21 -0700 2009 Switched to LGPL 3 [redchrom]
file Makefile.am
file README
file TODO Mon May 04 08:06:58 -0700 2009 Add smart cons We can make length and list? O(... [redchrom]
file autogen.sh
file configure.ac
directory debian/
directory scheme/
directory vm/
README
Education experiment on implementing scheme vm and compiler.

Source structure:

scheme - scheme sources
scheme/sc - compiler itself
vm - vm sources

At this moment, you need a external scheme implementation to run the compiler,
I prefer ypsilon, but you can use any r6rs implementation after rewriting some
ypsilon-dependent code (I will do it in the future).

So if you want to play with lgears:
run `make' to build VM
from scheme/ run `./main.scm test.scm' (need ypsilon)
You will see a lot of debug info and compilation stage dumps.
compiler will create files:
  compiled/test.scm.o - bytecode
  compiled/test.scm.dbg - debug symbols

To execute bytecode run: `../vm/vm compiled/test.scm.o'