
Optimizing compilers for modern architectures
by Randy Allen · first published 2002
5mentions
3recommended by
5HN commenters
2010–2025first – last mentioned
60% recommend40% neutral
Affiliate links. As an Amazon Associate I earn from qualifying purchases.







…Dragon book, for example, mostly covers parsing, classical scalar optimizations, and code generation, giving you very little to go on for interprocedural optimization, for example. Allen & Kennedy's "Optimizing Compilers for Modern Architectures" is going to be a better resource for loop optimization. If you want to get these textbooks for a cheaper price, try finding a nearby university, looking up when they offer a compiler course, and seeing…
on “GNU Compiler Collection Internals [pdf]” ↗…Implementation Concepts, Techniques and Models of Computer Programming Design Concepts in Programming Languages Lambda-Calculus and Combinators (the new Hindley/Seldin book, just got it 2 weeks ago) Optimizing Compilers for Modern Architectures Abstract Computing Machines: A Lambda-Calculus Perspective
on “Ask HN: What are your favorite programming books?” ↗…https://compilerbook.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…
on “C Compiler from Scratch” ↗I've only read a little bit in Optimizing Compilers for Modern Architectures, but it seems a pretty complete introduction: http://www.amazon.com/Optimizing-Compilers-Modern-Architectu... Another space you can look for interesting things (not necessarily optimising compilation)…
on “Self hosted C – breakdown” ↗…recommend. For what it's worth my goal was to compile to machine code. Anything less would have seemed insufficient. Later I got Appel's "Modern Compiler Implementation in Java" and Allen and Kennedy "Optimizing Compilers for Modern Architectures". Cooper and Torczon "Engineering a Compiler" was recommended here recently. I haven't seen it.
on “TinyCompiler: A compiler in a week-end” ↗