Writing a C Compiler

Build a Real Programming Language from Scratch

(Autor) Nora Sandler
Formato: Paperback
£66,99 Precio: £63,64 (5% off)
Generally dispatched in 1 to 2 days

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

Love Machines

Love Machines

How Artificial Intelligence is Transforming Our Relationships

James Muldoon
Paperback
Publicada: 2026
Nexus

Nexus

A Brief History of Information Networks from the Stone Age to AI

Yuval Noah Harari
Paperback
Publicada: 2025
The Immortalists

The Immortalists

The Death of Death and the Race for Eternal Life

Aleks Krotoski, Krotoski Aleks
Hardcover
Publicada: 2025
If Anyone Builds It, Everyone Dies

If Anyone Builds It, Everyone Dies

The Case Against Superintelligent AI

Eliezer Yudkowsky
Hardcover
Publicada: 2025
Automate the Boring Stuff with Python, 3rd Edition

Automate the Boring Stuff with Python, 3rd Edition

Al Sweigart
Paperback
Publicada: 2025
The Official Raspberry Pi Handbook 2026

The Official Raspberry Pi Handbook 2026

Astounding Projects with Raspberry Pi Computers

The Makers of Raspberry Pi Official Magazine
Paperback
Publicada: 2025