Settings

Theme

Show HN: A self-hosting C compiler that runs on a Raspberry Pi Pico

github.com

4 points by ezulabs 7 days ago · 1 comment · 1 min read

Reader

I built a C compiler that runs on a Raspberry Pi Pico ($4, 264KB RAM). It compiles C to ARM Thumb and JIT-executes it.

It can compile its own source code on the hardware.

Full pipeline: preprocessor, parser, type system, Thumb-1/Thumb-2 codegen, mark-and-compact GC, USB REPL.

Try it: flash the UF2, connect serial (115200), type "help".

https://github.com/ezulabs/MicroCC

ezulabsOP 7 days ago

Looking for embedded/compiler work. Happy to discuss implementation details.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection