2 ms·
Thanks Bob, great book! Do you have any recommendations on going from learning about interpreters to learning about compilers, ie making a language go all the w
by satvikpendem 4y ago
Thanks Bob, great book! Do you have any recommendations on going from learning about interpreters to learning about compilers, ie making a language go all the way from the high level to machine code / binary? I'm looking for something at the same level of quality as your book, which is to say, very high.
- munificent 4y agoGoing all the way to native code is hard. I would probably recommend both of: * Compilers, Principles, and Tools (the Dragon Book) * Engineering a Compiler You can skim a lot of the Dragon Book, but it will introduce you to a lot of the basics around type checking and generating code. Then Engineering a Compiler (which roughly assumes you have some familiarity with compilers already) does a very good job of walking through all of the key algorithms behind control flow analysis, register allocation, instruction selection, optimization, etc.
- satvikpendem 4y agoAwesome, thank you!
- sn9 4y agoThere's also a new book out that might be worth a look that uses an incremental approach with Racket. https://mitpress.mit.edu/9780262047760/essentials-of-compilation/ https://mitpress.mit.edu/9780262047760/essentials-of-compila...