4 ms·
FWIW, (i.e., for some historical fun) Dr. Dobbs Journal published a program called "Small C Compiler" by Ron Cain back in 1980. [1] Later, it was expanded by J
by a_e_k 2y ago
FWIW, (i.e., for some historical fun) Dr. Dobbs Journal published a program called "Small C Compiler" by Ron Cain back in 1980. [1]
Later, it was expanded by James Hendrix into a full book with a more complete implementation. [2] (As a kid, coming across this book in the bargain bin at CompUSA was what led to me learning C. I still have my copy!)
[1] https://archive.org/details/dr_dobbs_journal_vol_05_201803/page/n189/mode/2up https://archive.org/details/dr_dobbs_journal_vol_05_201803/p...
[2] https://www.amazon.com/Small-Compiler-Language-Theory-Design/dp/0934375887 https://www.amazon.com/Small-Compiler-Language-Theory-Design...
- FullyFunctional 2y agoThat was my first introduction to C and I hacked a lot on that code. A very enjoyable time was had. My only regret with Rust is that a “Small Rust Compiler” will be an order of magnitude larger.