Hacker News new | past | comments | ask | show | jobs | submit login

Say I wrote my own CPU (which I did), which of those tiny C compilers would be easiest to retarget?

My CPU is very small, (~300 LUT4 on an FPGA using Yosys), but has a very minimal ISA. It's mostly an accumulator machine with a stack pointer.




SubC is very easy to retarget, especially the book version. It is not a full C compiler, though.

http://t3x.org/subc/


I'm interested in what you mean by "wrote my own CPU". Could you elaborate please?





Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: