
For example, I tested my recent Tiny TFT Graphics Library in uLisp before developing a C version. When I'm developing a project for a microcontroller, such as the ATmega328 used in the Arduino Uno, or the ATtiny85, I often prototype the application in uLisp before converting it to C for use in the final application. This program is a work in progress, but I thought it would be worth sharing it now in case it's useful to other uLisp users. Although the C program it generates isn’t perfect, it normally only requires a bit of tidying up to create a working C version of the program.

I ran it using uLisp on an Adafruit ItsyBitsy M4. The Lisp-to-C converter will run in uLisp, or any Common Lisp implementation. This article describes a Lisp-to-C converter that automatically converts a uLisp program to valid C, for use as the starting point in creating a C version of the application.


Arbitrary-precision arithmetic extension.
