michiakig/incremental-compiler
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Repository files navigation
This is the Lisp compiler from the oft-recommended "An Incremental Approach to Compiler Construction". In some cases, the code closer resembles the sister document "Compilers: Backend to Frontend and Back to Front Again". It emits x86 assembly that can be assembled with gcc on 32-bit GNU/Linux; see the `compile-and-run` function for details. I used Vagrant for easy access to a 32-bit Ubuntu box since the output of `gcc -S` on Snow Leopard was pretty complicated compared to what the paper starts with.