5 ms·
The good intro to compilers is Engineering a Compiler. It focuse more on optimization then most intro books, and its all SSA. If you want to go all in on SSA o
by nickik 12y ago
The good intro to compilers is Engineering a Compiler. It focuse more on optimization then most intro books, and its all SSA.
If you want to go all in on SSA optimization, there is a book called Static Single Assignment Book and its written by a hole list of compiler writers. Its not finished but there is still a lot of information.
You can find it here: http://ssabook.gforge.inria.fr/latest/book.pdf http://ssabook.gforge.inria.fr/latest/book.pdf
Or you can go with the classic, Advanced Compiler Design & Implementation. See here, http://www.amazon.com/Advanced-Compiler-Design-Implementation-Muchnick/dp/1558603204 http://www.amazon.com/Advanced-Compiler-Design-Implementatio...
All of them will teach you a lot about LLVM.
- ltta 12y agoSpeaking of SSA and optimizations, I just remembered that Andy Wingo (core contributor to Guile scheme) has a treasure trove of great articles, e.g. a fun intro to SSA [1] or CPS as used in Guile [2]. His blog is totally worth just browsing around. [1] http://wingolog.org/archives/2011/07/12/static-single-assignment-for-functional-programmers http://wingolog.org/archives/2011/07/12/static-single-assign... [2] http://wingolog.org/archives/2014/01/12/a-continuation-passing-style-intermediate-language-for-guile http://wingolog.org/archives/2014/01/12/a-continuation-passi...
- nickik 12y agoYes. His posts are a great. He is working on a VM and I do to so I follow his work closly.