Show HN: Xcc700: Self-hosting mini C compiler for ESP32 (Xtensa) in 700 lines
via github.com
Short excerpt below. Read at the original source.
Repo: https://github.com/valdanylchuk/xcc700 Hi Everyone! I just wrote my first compiler! – single pass, recursive descent, direct emission – generates REL ELF binaries, runnable using ESP-IDF elf_loader – very basic features only, just enough for self-hosting – treats the Xtensa CPU as a stack machine for simplicity, no register allocation / window usage – compilable on […]