4 ms·
On similar topic, back in school we followed "Modern Compiler Implementation using ML" by Andrew Appel. Pretty good book, which teaches good amount of theory, b
by truncate 7y ago
On similar topic, back in school we followed "Modern Compiler Implementation using ML" by Andrew Appel. Pretty good book, which teaches good amount of theory, but also has a project where you implement pieces of compiler as you progress through the book. Its fairly challenging, as you will generate assembly (MIPS) instead of just interpreting and apply various optimizations (and register allocation) in the end.
Its not exactly from scratch as there is some boilerplate code to keep you focused on concepts. It was quite fun, except I didn't really like working with SML (OCaml would have been nicer IMO, and I think you can choose to use that by finding the ported boilerplate on Github). Also has C and Java versions of this book.