by nemesisrobot · 11y ago · 0 comments
https://class.stanford.edu/courses/Engineering/Compilers/Fal...
https://dirkjan.ochtman.nl/writing/2012/07/21/compilers-on-c...
Afterwards, I thoroughly overhauled my nascent compiler. It currently lives here:
(It's a Python-like systems language, with a compiler written in Python targeting LLVM IR.)
I found SPIM super-annoying, but managed to resist the temptation to build a better MIPS emulator. :-)
Highly recommend: writing a (very simple) compiler is no longer a black-art-seeming thing to me.