A Lisp compiler to RISC-V written in Lisp

This experimental Lisp compiler, written in uLisp, compiles Lisp functions into RISC-V machine code. The compiler can run on a Raspberry Pi Pico 2 or another RP2350-based board. It eliminates the need for a tokenizer or parser, as Lisp programs have a consistent structure. The compiler uses Common Lisp subset supported by uLisp and RISC-V core. It offers tail-call optimization and efficient recursive capabilities. The compiler handles defining variables, functions, symbols, list functions, arithmetic operations, conditionals, and more. Examples include factorization, Fibonacci series, greatest common divisor, and recursive sequences. The compiler source code includes utility functions for compilation.

http://www.ulisp.com/show?4Y20

To top