Skip to content

Files

Latest commit

7aab075 · Mar 15, 2016

History

History
20 lines (14 loc) · 695 Bytes

README.rst

File metadata and controls

20 lines (14 loc) · 695 Bytes

LISP0

A bare minimum remake of origin LISP on Linux x86-64.

Run example [1]

$ make
$ cat example.in | ./lisp0.elf | diff example.out -

It is static linked without crt, using TLSF [2] memory allocator, and one-pass mark-sweep garbage collector [3] . Short symbols, less than 8 bytes, are base64 decoded to fit in 6 bytes.

[1]Example code are taken from The Roots of Lisp http://lib.store.yahoo.net/lib/paulgraham/jmc.ps
[2]TLSF: a New Dynamic Memory Allocator for Real-Time Systems http://www.gii.upv.es/tlsf/files/ecrts04_tlsf.pdf
[3]One Pass Real-Time Generational Mark-Sweep Garbage Collection http://www.erlang.se/publications/memory1995.ps