Writing a C Compiler: Build a Real Programming Language from Scratch

Writing a C Compiler: Build a Real Programming Language from Scratch

comments:

Express-Guest-1061 posted on r/compilers2w

I also started with "Writing An Interpreter in Go" by Thorsten Ball, it is a good start. I also read the follow up about Compiler. A good next step after this is Writing a C Compiler by Nora Sandler. Like your first book, this is also a hands-on book but it does introduce an Intermediate Language called TACKY and describes how to do optimizations and code generation with register allocation. It is a good next step.