Compiling to Assembly from scratch
Vladimir KeleshevPerhaps, you’ve learned about compiling to JavaScript, or about building an interpreter? Or, maybe, about compiling to bytecode? All good steps.
But there’s a tension building up.
Because it feels a bit like cheating. Because you know that somewhere, somehow, the code you write is translated to assembly instructions. To the machine language. That’s where the rubber hits the road. That’s where it gets hot. And, oh-so-many resources are hesitant to cover this part. But not this book.
This ebook will show you in detail how you can build a compiler from scratch that goes all the way from source to assembly.
The example code is written in a subset of TypeScript that reads like pseudocode. The book describes the design and implementation of a compiler that emits 32-bit ARM assembly instructions. All you need to know is how to program, the book will teach you enough compiler theory and assembly programming to get going.