News for hackers. Stuff that matters.
Re:A Brief and Brisk Overview of Compiler Architecture by eatonphil on Monday April 29, 2019 @08:17AM (#19777598)
I've got a work-in-progress series [0] (first three posts are up) on writing a compiler from scratch in JavaScript (no third-party libraries). The first two posts target amd64 assembly, the third post ports to LLVM IR. You may not learn much about the best way to build compilers [i.e. 1) using a parser generator and 2) not emitting text directly], but you'll start with minimal code/functionality and build up from there -- which I always find super useful in learning new things.

There are many series like mine throughout the internet that are generally useful aides when combined with the typical dense, classical compiler textbook. The single exception to "dense textbooks" on compilers is Nikolaus Wirth's Compiler Construction [1] where he takes you through writing a compiler from scratch in ~100 pages. This is one of my favorite compiler (and programming?) books by one of the coolest programming language researchers. But even it may not be super accessible as a first on compilers.

[0] http://notes.eatonphil.com/compiler-basics-lisp-to-assembly....

[1] http://www.ethoberon.ethz.ch/WirthPubl/CBEAll.pdf

There are no comments on this comment yet.