This compiler lets you compile code like 17 . 22 11 + emit
(prints out 17!
). It is completely useless, but it helped me get a bit better at Common Lisp and x86-64 assembly.
- x86-64 Linux
- fasm
- A Common Lisp implementation
- Load
compiler.lisp
in the Common Lisp implementation of your choice (only tested with sbcl) - Call
(compile-code "<your source code")
- Run
make
(runs the assembler)