Writing a C Compiler

Build a Real Programming Language from Scratch

(Autor) Nora Sandler
Formato: Paperback
66,99 Precio: £49,59 (26% off)
In Stock

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.

Information
Editorial:
No Starch Press,US
Formato:
Paperback
Número de páginas:
902
Idioma:
en
ISBN:
9781718500426
Año de publicación:
2024
Fecha publicación:
20 de Agosto de 2024

Nora Sandler

Nora Sandler is a renowned American novelist known for her ability to blend elements of mystery, romance, and psychological drama in her works. Her most notable novel, "The Forgotten Room," intricately weaves together multiple storylines, creating a captivating and suspenseful narrative.

Sandler's writing style is characterized by vivid descriptions, complex characters, and unexpected plot twists that keep readers engaged from beginning to end. She has made significant contributions to the literary genre of contemporary fiction, pushing boundaries and challenging readers to think critically about the human experience.

Overall, Nora Sandler's impact on literature is undeniable, as she continues to inspire and captivate audiences with her compelling storytelling and thought-provoking themes.

Reviews

Leave a review

Please login to leave a review.

Be the first to review this product

Other related

Mastering Ruby

Mastering Ruby

A Beginner's Guide

Sufyan bin Uzayr
Paperback
Default Cover

The Mind Manual

Your Complete Mental Fitness Toolkit: Quick Reads edition

Dr Alex George
Paperback
Publicada: 2025
Strangers and Intimates

Strangers and Intimates

The Rise and Fall of Private Life

Tiffany Jenkins
Hardcover
Publicada: 2025
Default Cover

Drawing for Product Designers Second Edition

From Hand Sketching to Virtual Reality

Kevin Henry
Paperback
Publicada: 2025
Default Cover

Attack of the Flickering Skeletons

More Terrible Old Games You've Probably Never Heard Of

Stuart Ashen
Paperback
Publicada: 2025
Code Dependent

Code Dependent

How AI Is Changing Our Lives

Madhumita Murgia
Paperback
Publicada: 2025