{"product_id":"writing-a-c-compiler-9781718500426","title":"Writing a C Compiler","description":"\u003cp\u003eA fun, hands-on guide to writing your own compiler for a real-world programming language.\u003c\/p\u003e\u003cp\u003eCompilers 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.\u003c\/p\u003e\u003cp\u003eWriting 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:\u003c\/p\u003e\u003cp\u003eLexing and parsing: Learn how to write a lexer and recursive descent parser that transform C code into an abstract syntax tree. Program analysis: Discover how to analyze a program to understand its behavior and detect errors. Code generation: Learn how to translate C language constructs like arithmetic operations, function calls, and control-flow statements into x64 assembly code. Optimization techniques: Improve performance with methods like constant folding, dead store elimination, and register allocation.\u003c\/p\u003e\u003cp\u003eCompilers aren’t terrifying beasts—and with help from this hands-on, accessible guide, you might even turn them into your friends for life.\u003c\/p\u003e\u003ch2\u003eBook details\u003c\/h2\u003e\u003cul\u003e\n\u003cli\u003e\n\u003cstrong\u003eFull title:\u003c\/strong\u003e Writing a C Compiler: Build a Real Programming Language from Scratch\u003c\/li\u003e\n\u003cli\u003e\n\u003cstrong\u003eAuthor:\u003c\/strong\u003e Nora Sandler\u003c\/li\u003e\n\u003cli\u003e\n\u003cstrong\u003ePublisher:\u003c\/strong\u003e No Starch Press\u003c\/li\u003e\n\u003cli\u003e\n\u003cstrong\u003eFormat:\u003c\/strong\u003e Paperback\u003c\/li\u003e\n\u003cli\u003e\n\u003cstrong\u003ePages:\u003c\/strong\u003e 792\u003c\/li\u003e\n\u003cli\u003e\n\u003cstrong\u003eLanguage:\u003c\/strong\u003e English\u003c\/li\u003e\n\u003cli\u003e\n\u003cstrong\u003ePublication date:\u003c\/strong\u003e August 20, 2024\u003c\/li\u003e\n\u003cli\u003e\n\u003cstrong\u003eISBN:\u003c\/strong\u003e 9781718500426\u003c\/li\u003e\n\u003c\/ul\u003e","brand":"No Starch Press","offers":[{"title":"Default Title","offer_id":48047546368089,"sku":"BBS1L-9781718500426","price":36.57,"currency_code":"USD","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0745\/8445\/7305\/files\/81U4q6BPrXL.jpg?v=1796120380","url":"https:\/\/bulkbookshop.com\/products\/writing-a-c-compiler-9781718500426","provider":"bulkbookshop","version":"1.0","type":"link"}