홈 / 책 찾기 / Writing a C Compiler

Writing a C Compiler
Build a Real Programming Language from Scratch
A fun, hands-on guide to writing your own compiler for a real-world programming language.
Compilers are at the heart of everything programmers do, yet even experienced developers find them intimidating. For those eager to truly grasp how compilers work, Writing a C Compiler dispels the mystery. This book guides you through a fun and engaging project where you’ll learn what it takes to compile a real-world programming language to actual assembly code.
Writing a C Compiler will take you step by step through the process of building your own compiler for a significant subset of C—no prior experience with compiler construction or assembly code needed. Once you’ve built a working compiler for the simplest C program, you’ll add new features chapter by chapter. The algorithms in the book are all in pseudocode, so you can implement your compiler in whatever language you like. Along the way, you’ll explore key concepts like:
1. Lexing and parsing: Learn how to write a lexer and recursive descent parser that transform C code into an abstract syntax tree. 2. Program analysis: Discover how to analyze a program to understand its behavior and detect errors. 3. Code generation: Learn how to translate C language constructs like arithmetic operations, function calls, and control-flow statements into x64 assembly code. 4. Optimization techniques: Improve performance with methods like constant folding, dead store elimination, and register allocation.
Compilers aren’t terrifying beasts—and with help from this hands-on, accessible guide, you might even turn them into your friends for life.
| 제목 | Writing a C Compiler: Build a Real Programming Language from Scratch |
|---|---|
| 저자 | Nora Sandler |
| 출판사 | No Starch Press, Incorporated |
| 출간 | 2023 |
| 쪽수 | 704쪽 |
| 언어 | 영어 |
| ISBN | 9781718500426 |
배송
결제가 확인되면 해외 판매처에 주문을 넣습니다. 받으시기까지 보통 2~3주 걸립니다. 국내에 들어오면 택배 송장번호를 주문 화면과 문자로 알려 드립니다.
통관
개인 주문은 개인통관고유부호가 필요합니다. 주문서에 넣어 주시고, 받은 번호는 그 주문에만 씁니다.
취소, 반품
해외 주문 전에는 주문 화면에서 바로 취소하실 수 있고 전액 환불됩니다. 해외 주문 뒤에는 단순 변심 취소가 어렵습니다. 받으신 책이 설명과 크게 다르거나 파손되었으면 다시 구해 드리거나 환불합니다.