Running OCaml on a TI-84+ CE Calculator

2025-05-20

This post details the author's journey in compiling an OCaml program to run on a TI-84+ CE calculator. Leveraging Js_of_ocaml, a tool typically used to compile OCaml to JavaScript, the author cleverly repurposed it to generate C code instead. Due to the TI-84+ CE's resource constraints, a simple garbage collector was implemented, along with necessary C functions for interacting with the calculator's hardware. The author successfully ran a simple OCaml program, demonstrating the feasibility of their approach.

Development