Show HN: Xcc700: Self-hosting mini C compiler for ESP32 (Xtensa) in 700 lines
4 months ago
- #ESP32
- #education
- #compiler
- xcc700 is a small, tweakable compiler for modern platforms.
- It supports basic C features sufficient for compiler development.
- Outputs REL ELF files compatible with ESP-IDF elf_loader.
- Limited feature set: no structs, floats, or full type checking.
- Optimized for simplicity over performance (stack machine model).
- Self-hosting: can compile itself (33kB output, slower execution).
- MIT Licensed, intended for educational/hackathon use.
- Targets ESP32 but portable (tested on Mac x86_64/arm64).
- Philosophical focus: minimalism, energy efficiency, and hackability.