[0]: https://lagunita.stanford.edu/courses/Engineering/Compilers/...
[0]: https://lagunita.stanford.edu/courses/Engineering/Compilers/...
If you want to understand how people build production (or even prototype) compilers, this is not going to be a good source. Most compiler courses are going to take you from a compiler from the frontend through the middle-end and into the backend. But, if you were to build your own, you'd start with the backend (or probably just use LLVM instead) before going to the frontend. And you'd also spend some more time planning on what your IR needs to look like before starting the actual code (not that this project has any IR--it codegens directly to assembly from the AST).
Does anyone have any links to some good compiler classes on YouTube or elsewhere?
https://www.youtube.com/playlist?list=PLDcmCgguL9rxPoVn2ykUF...
I wouldn’t read it except out of historical interest - it’s not how we build compilers anymore, with its super-heavy emphasis on parsing and syntax-directed translation.
* https://interpreterbook.com/
Somewhat more practical:
* https://www.craftinginterpreters.com/
...
massive gap here
...
Serious:
* Engineering a Compiler (even this wastes soooo much time on parsing)
* Optimizing Compilers for Modern Architectures
* Advanced Compiler Design and Implementation
I'm not exaggerating or being contrary for the sake of it when I say disregard the Dragon book - we don't build compilers like that any more. It's not even like it teaches you the foundations that are still useful because I think the foundations and what we emphasise as important now have changed so much.