Advanced Compiler Design and Implementation – Book Review

Advanced Compiler Design and Implementation Cover

After having read my first book about compilers, I decided to try another one more focused on optimizations. For that, I chose “Advanced Compiler Design and Implementation“, by Steven S. Muchnick. This book covers several subjects about compilers, but more than 60% of the text is about compiler optimizations. The first chapter introduces the main [...]



Local optimization of Three-Address-Code

eddic Logo

Some compilers are using Three-Address-Code (TAC) as an intermediate representation. This representation is very simple to understand and write. Moreover, it’s easy to run some optimization on this representation. Each TAC statement has this general form : result = operand1 operator operand2 For example, here are some TAC statements: In this post, we will see [...]



Compilers : Principles, Techniques & Tools – Book Review

Dragon Book Cover

Some weeks ago, I finished reading Compilers : Principles, Techniques & Tools, by Afred V. Aho, Monica S. Lam, Ravi Sethi and Jeffrey D. Ullman. This book is also called the Dragon Book due to the cover. This book is a reference about compiler construction and design. If you are interested in this subject, this book [...]