BIBLIO is the largest independent book marketplace in the world, with over 100 million books.

Skip to content

Writing A C Compiler: Build a Real Programming Language from Scratch
Stock photo: cover may vary

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

by Nora Sandler

Add to wish list

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

From the publisher

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.

Details

  • Title Writing A C Compiler: Build a Real Programming Language from Scratch
  • Author Nora Sandler
  • Binding Paperback
  • Pages 792
  • Volumes 1
  • Language ENG
  • Publisher No Starch Press
  • Publication date 2024-08-20
  • Illustrated Yes
  • Features Bibliography, Illustrated, Index
  • ISBN 9781718500426 / 1718500424
  • Weight 2.79 lbs (1.27 kg)
  • Dimensions 9.27 x 7.06 x 1.41 in (23.55 x 17.93 x 3.58 cm)
  • Category Computers - Languages / Programming
  • Library of Congress subjects C (Computer program language), Compilers (Computer programs)
  • Library of Congress Catalogue Number 2023058768
  • Dewey Decimal Code 005.133

About the author

Nora Sandler is a software engineer based in Seattle. She holds a BS in computer science from the University of Chicago, where she researched the implementation of parallel programming languages. More recently, she's worked on domain-specific languages at an endpoint security company. You can find her blog on pranks, compilers, and other computer science topics at https: //norasandler.com.

More Copies for Sale

Writing a C Compiler: Build a Real Programming Language from Scratch [Paperback] Sandler, Nora
Stock photo: cover may vary

Writing a C Compiler: Build a Real Programming Language from Scratch [Paperback] Sandler, Nora

by Ingram

  • New
Condition
New
ISBN 10 / ISBN 13
9781718500426 / 1718500424
Quantity available
7
Seller
Item price
A$69.43
A$5.79 Delivery to USA

Show details

Description:
New. BRAND NEW, GIFT QUALITY! NOT OVERSTOCKS OR MARKED UP REMAINDERS! DIRECT FROM THE PUBLISHER!
Add to wish list
Item price
A$69.43
A$5.79 Delivery to USA
Writing a C Compiler: Build a Real Programming Language from Scratch
Stock photo: cover may vary

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

by Nora Sandler

  • New
Condition
New
ISBN 10 / ISBN 13
9781718500426 / 1718500424
Quantity available
1
Seller
Item price
A$72.87
A$5.79 Delivery to USA

Show details

Description:
new.
Add to wish list
Item price
A$72.87
A$5.79 Delivery to USA
Writing a C Compiler: Build a Real Programming Language from Scratch
Stock photo: cover may vary

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

by Nora Sandler

  • Used
Condition
New
ISBN 10 / ISBN 13
9781718500426 / 1718500424
Quantity available
1
Seller
Item price
A$72.87
A$5.79 Delivery to USA

Show details

Description:
like new.
Add to wish list
Item price
A$72.87
A$5.79 Delivery to USA
Writing a C Compiler: Build a Real Programming Language from Scratch
Stock photo: cover may vary

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

by Sandler, Nora

  • Used
  • Paperback
Condition
Used
Binding
Paperback
ISBN 10 / ISBN 13
9781718500426 / 1718500424
Quantity available
1
Seller
Item price
A$79.70
A$21.78 Delivery to USA

Show details

Description:
No Starch Press, 2024-08-20. paperback. Used: Good. 7.06x1.31x9.31. Buy with confidence. Excellent Customer Service & Return policy.
Add to wish list
Item price
A$79.70
A$21.78 Delivery to USA
Writing a C Compiler

Writing a C Compiler

by Nora Sandler

  • New
  • Paperback
Condition
New
Binding
Paperback
ISBN 10 / ISBN 13
9781718500426 / 1718500424
Quantity available
2
Seller
Item price
A$107.55
A$15.59 Delivery to USA

Show details

Description:
Paperback / softback. New. New Book; Fast Shipping from UK; Not signed; Not First Edition; An approachable, hands-on tutorial to writing a C compiler: a computer program that translates code written by the programmer into code the computer can understand. By building a compiler, readers will gain invaluable knowledge about ho
Add to wish list
Item price
A$107.55
A$15.59 Delivery to USA
Writing a C Compiler: Build a Real Programming Language from Scratch
Stock photo: cover may vary

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

by Sandler, Nora

  • New
  • Paperback
Condition
New
Binding
Paperback
ISBN 10 / ISBN 13
9781718500426 / 1718500424
Quantity available
6
Seller
Item price
A$92.62
A$21.78 Delivery to USA

Show details

Description:
No Starch Press, 2024-08-20. paperback. New. 7.06x1.31x9.31. Buy with confidence. Excellent Customer Service & Return policy.
Add to wish list
Item price
A$92.62
A$21.78 Delivery to USA
Writing a C Compiler: Build a Real Programming Language from Scratch
Stock photo: cover may vary

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

by Sandler, Nora

  • New
Condition
New
ISBN 10 / ISBN 13
9781718500426 / 1718500424
Quantity available
14
Seller
Item price
A$101.61
A$29.02 Delivery to USA

Show details

Description:
No Starch Press. New. Special order direct from the distributor
Add to wish list
Item price
A$101.61
A$29.02 Delivery to USA
Writing a C Compiler: Build a Real Programming Language from Scratch
Stock photo: cover may vary

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

by Sandler, Nora

  • New
  • Paperback
Condition
New
Binding
Paperback
ISBN 10 / ISBN 13
9781718500426 / 1718500424
Quantity available
1
Seller
Item price
A$101.61
A$7.26 Delivery to USA

Show details

Description:
No Starch Press, 2024 Book. New. Paperback.
Add to wish list
Item price
A$101.61
A$7.26 Delivery to USA
Writing a C Compiler: Build a Real Programming Language from Scratch
Stock photo: cover may vary

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

by Sandler, Nora

  • Used
  • Good
  • Paperback
Condition
Good
Binding
Paperback
ISBN 10 / ISBN 13
9781718500426 / 1718500424
Quantity available
1
Seller
Item price
A$106.49
Free Delivery to USA

Show details

Description:
paperback. Good. Access codes and supplements are not guaranteed with used items. May be an ex-library book.
Add to wish list
Item price
A$106.49
Free Delivery to USA
Writing a C Compiler: Build a Real Programming Language from Scratch
Stock photo: cover may vary

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

  • New
Condition
New
ISBN 10 / ISBN 13
9781718500426 / 1718500424
Quantity available
4
Seller
Item price
A$125.36
A$5.79 Delivery to USA

Show details

Description:
. Papeback. New.
Add to wish list
Item price
A$125.36
A$5.79 Delivery to USA