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...
$158.53 AUD
$158.53 AUD
SKU: 9781718500426
Product Type: Books
Please hurry! Only 36 left in stock
Author: Nora Sandler
Format: Paperback
Language: English
Subtotal: $158.53
10 customers are viewing this product
Writing A C Compiler: Build a Real Programming Language from Scratch by Sandler, Nora

Writing A C Compiler: Build a Real Programming Language from Scratch

$158.53

Writing A C Compiler: Build a Real Programming Language from Scratch

$158.53
Author: Nora Sandler
Format: Paperback
Language: English
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:

  • Lexing 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.

Compilers aren't terrifying beasts--and with help from this hands-on, accessible guide, you might even turn them into your friends for life.

Author: Nora Sandler
Publisher: No Starch Press
Published: 08/20/2024
Pages: 792
Binding Type: Paperback
Weight: 2.79lbs
Size: 9.27h x 7.06w x 1.41d
ISBN: 9781718500426

About the Author
Nora Sandler is a software engineer based in Seattle. Her interest in compilers dates back to her time at the University of Chicago, where she researched parallel programming languages with the Manticore Project. More recently, she's worked in the computer security industry developing compilers for domain-specific languages. You can read her blog about compilers, pranks, and other computer science topics at https: //norasandler.com.

Returns Policy

You may return most new, unopened items within 30 days of delivery for a full refund. We'll also pay the return shipping costs if the return is a result of our error (you received an incorrect or defective item, etc.).

You should expect to receive your refund within four weeks of giving your package to the return shipper, however, in many cases you will receive a refund more quickly. This time period includes the transit time for us to receive your return from the shipper (5 to 10 business days), the time it takes us to process your return once we receive it (3 to 5 business days), and the time it takes your bank to process our refund request (5 to 10 business days).

If you need to return an item, simply login to your account, view the order using the "Complete Orders" link under the My Account menu and click the Return Item(s) button. We'll notify you via e-mail of your refund once we've received and processed the returned item.

Shipping

We can ship to virtually any address in the world. Note that there are restrictions on some products, and some products cannot be shipped to international destinations.

When you place an order, we will estimate shipping and delivery dates for you based on the availability of your items and the shipping options you choose. Depending on the shipping provider you choose, shipping date estimates may appear on the shipping quotes page.

Please also note that the shipping rates for many items we sell are weight-based. The weight of any such item can be found on its detail page. To reflect the policies of the shipping companies we use, all weights will be rounded up to the next full pound.

Related Products

Recently Viewed Products