Compiling OCaml to the TI-84 CE Calculator
a year ago
- #Compiler
- #TI-84+ CE
- #OCaml
- Compiling OCaml to run on a TI-84+ CE calculator using a new C backend.
- OCaml lacks native support for calculator toolchains, unlike C, C++, Rust, and Zig.
- Js_of_ocaml is used to emit C instead of JavaScript, leveraging its optimizations and build system support.
- A garbage collector is implemented by using a global stack to track live objects.
- The runtime includes minimal standard library functions and TI-84+ CE-specific features.
- The project supports a subset of OCaml features, excluding floats and exceptions.
- Future goals include expanding compatibility and using the project with 'wee' for broader portability.