CONTENTS IN DETAIL
- TITLE PAGE
- COPYRIGHT
- DEDICATION
- ABOUT THE AUTHOR AND TECHNICAL REVIEWER
- ACKNOWLEDGMENTS
- INTRODUCTION
- Who This Book Is For
- Why Write a C Compiler?
- Compilation from 10,000 Feet
- What You’ll Build
- How to Use This Book
- The Test Suite
- Extra Credit Features
- Some Advice on Choosing an Implementation Language
- System Requirements
- Installing GCC and GDB on Linux
- Installing the Command Line Developer Tools on macOS
- Running on Apple Silicon
- Validating Your Setup
- Additional Resources
- Let’s Go!
- PART I: THE BASICS
- 1A MINIMAL COMPILER
- The Four Compiler Passes
- Hello, Assembly!
- The Compiler Driver
- The Lexer
- The Parser
- An Example Abstract Syntax Tree
- The AST Definition
- The Formal Grammar
- Recursive Descent Parsing
- Assembly Generation
- Code ...
Get Writing a C Compiler now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.