DeepRead
Cover of A retargetable C compiler

A retargetable C compiler

Christopher W. Fraser · 1995

Programming and computer science › Compilers and interpreters

#2,470 most recommended

About the book

The design and implementation of lcc, a production-quality ANSI C compiler built at AT&T Bell Laboratories and Princeton and written by Christopher Fraser and David Hanson. It is presented as a literate program, with the text interleaved with the complete source code for the compiler, its back ends for the MIPS R3000, SPARC and Intel 386, and the code-generator generator. Compiler theory appears only where the implementation needs it. Building a real compiler forces practical tradeoffs, such as how to separate the front end from the target machine, how to design compact interfaces between phases, and how to balance compilation speed against code quality, and these are more instructive than the simplified designs of toy compilers. Retargetability comes from a small set of well-defined machine-description and code-generation interfaces rather than special cases for each target. The authors also hold that seeing how C's declarations, types and expressions are handled inside a compiler gives programmers a deeper understanding of the language.

Written by Claude from what it knows of this book.

What Hacker News says 56% recommend · 6% critical

02420102015202020262017 peak · 4
This bookAverage book in Compilers and interpreters

In the commenters’ own words

What Open Library readers say 3.00 from 1 rating

  1. 50
  2. 40
  3. 31
  4. 20
  5. 10
  • 3 want to read
  • 0 reading
  • 1 have read

Only 1 rating: treat the average as a hint.

Open Library’s page for the book

What critics say, via Wikipedia

No Wikipedia article about this book yet, so no critics to quote.

Reddit communities — coming later

The threads it came up in

Details

First published
1995
ISBN
9780805316704
Editions known
2 at Open Library
Open Library
OL3492370W

C (Computer program language)Compilers (Computer programs)

Explore in the mosaic

Read next: its neighbours on the mosaic