List Price: $69.99 Details

The List Price is the suggested retail price of a new product as provided by a manufacturer, supplier, or seller. Except for books, Amazon will display a List Price if the product was purchased by customers on Amazon or offered by other retailers at or above the List Price in at least the past 90 days. List prices may not necessarily reflect the product's prevailing market price.
Learn more
Save: $9.04 (13%)
FREE Returns
Return this item for free
  • Free returns are available for the shipping address you chose. You can return the item for any reason in new and unused condition: no shipping charges
  • Learn more about free returns.
Only 9 left in stock - order soon
[{"displayPrice":"$60.95","priceAmount":60.95,"currencySymbol":"$","integerValue":"60","decimalSeparator":".","fractionalValue":"95","symbolPosition":"left","hasSpace":false,"showFractionalPartIfEmpty":true,"offerListingId":"rTf7ynlXv6vgwkF9iG4Bs3s2zMfYIdI7C2DdmxkVH0mOh15EjWVtdXaGDw0BH%2BEWxfaOw1TGLNlDhUYYgr6kjiAAQpxFQEc72ODIyvcYlEUH62DrnBXQ6jVDvT5QLc1ni0gHWUgq%2BSY%3D","locale":"en-US","buyingOptionType":"NEW"},{"displayPrice":"$46.99","priceAmount":46.99,"currencySymbol":"$","integerValue":"46","decimalSeparator":".","fractionalValue":"99","symbolPosition":"left","hasSpace":false,"showFractionalPartIfEmpty":true,"offerListingId":"HPaLYrrjFvdU8aZgGWkVAL%2FZBOSKV1kyQ%2F9o3ay0%2FDrnXgfSoiSikGCi5rdZph6xEwxkd69Svi54%2FsvwUiXDXgez%2BYrA%2Bux%2B8jlnUvv2erKCyox4jzHGjNfBOPmIWfXppV7VwHsA1pgn9Tnc1GflXpBybdsqqI%2B8ihy0trwDxIMGQtssJpoNHfIy52OOXzlE","locale":"en-US","buyingOptionType":"USED"}]
$$60.95 () Includes selected options. Includes initial monthly payment and selected options. Details
Price
Subtotal
$$60.95
Subtotal
Initial payment breakdown
Shipping cost, delivery date, and order total (including tax) shown at checkout.
Payment
Secure transaction
Your transaction is secure
We work hard to protect your security and privacy. Our payment security system encrypts your information during transmission. We don’t share your credit card details with third-party sellers, and we don’t sell your information to others. Learn more
Ships from
Amazon.com
Sold by
Amazon.com
Returns
Eligible for Return, Refund or Replacement within 30 days of receipt
This item can be returned in its original condition for a full refund or replacement within 30 days of receipt.
Gift options
Add at checkout
Payment
Secure transaction
We work hard to protect your security and privacy. Our payment security system encrypts your information during transmission. We don’t share your credit card details with third-party sellers, and we don’t sell your information to others. Learn more
Ships from
Amazon.com
Sold by
Amazon.com
Returns
Eligible for Return, Refund or Replacement within 30 days of receipt
This item can be returned in its original condition for a full refund or replacement within 30 days of receipt.
Gift options
Add at checkout
Retargetable C Compiler, ... has been added to your Cart
FREE delivery Monday, March 20
Or fastest delivery Friday, March 17
Used: Very Good | Details
Sold by Bookstop1
Condition: Used: Very Good
Access codes and supplements are not guaranteed with used items.
Have one to sell?
Other Sellers on Amazon
Added
$65.99
+ $3.99 shipping
Sold by: SuperBookDeals-
Sold by: SuperBookDeals-
(351759 ratings)
86% positive over last 12 months
Only 3 left in stock - order soon.
Shipping rates and Return policy
Loading your book clubs
There was a problem loading your book clubs. Please try again.
Not in a club? Learn more
Amazon book clubs early access

Join or create book clubs

Choose books together

Track your books
Bring your club to Amazon Book Clubs, start a new book club and invite your friends to join, or find a club that’s right for you for free.
Kindle app logo image

Download the free Kindle app and start reading Kindle books instantly on your smartphone, tablet, or computer - no Kindle device required. Learn more

Read instantly on your browser with Kindle for Web.

Using your mobile phone camera - scan the code below and download the Kindle app.

QR code to download the Kindle App

Flip to back Flip to front
Listen Playing... Paused   You're listening to a sample of the Audible audio edition.
Learn more

Follow the Authors

See all
Something went wrong. Please try your request again later.

Retargetable C Compiler, A: Design and Implementation 1st Edition

4.2 out of 5 stars 25 ratings

Price
New from Used from
Paperback
$60.95
$49.99 $36.00

Enhance your purchase


Check out reading-themed apparel and accessories in the new Amazon Books merch shop

Editorial Reviews

From the Inside Flap

The compiler is the linchpin of the programmer's toolbox. Working programmers use compilers every day and count heavily on their correctness and reliability. A compiler must accept the standard definition of the programming language so that source code will be portable across platforms. A compiler must generate efficient object code. Perhaps more important, a compiler must generate correct object code; an application is only as reliable as the compiler that compiled it.

A compiler is itself a large and complex application that is worthy of study in its own right. This book tours most of the implementation of lcc, a compiler for the ANSI C programming language. It is to compiling what Software Tools by B.W. Kernighan and P.J. Plauger (Addison-Wesley, 1976) is to text processing like text editors and macro processors. Software design and implementation are best learned through experience with real tools. This book explains in detail and shows most of the code for a real compiler. The accompanying diskette holds the source code for the complete compiler.

lcc is a production compiler. It's been used to compile production programs since 1988 and is now used by hundreds of C programmers daily. Detailing most of a production compiler in a book leaves little room for supporting material, so we present only the theory needed for the implementation at hand and leave the broad survey of compiling techniques to existing texts. The book omits a few language features--those with mundane or repetitive implementations and those deliberately treated only in the exercises--but the full compiler is available on the diskette, and the book makes it understandable.

The obvious use for this book is to learn more about compiler construction. But only few programmers need to know how to design and implement compilers. Most work on applications and other aspects of systems programming. There are four reasons why this majority of C programmers may benefit from this book.

First, programmers who understand how a C compiler works are often better programmers in general and better C programmers in particular. The compiler writer must understand even the darkest corners of the C language; touring the implementation of those corners reveals much about the language itself and its efficient realization on modern computers.

Second, most texts on programming must necessarily use small examples, which often demonstrate techniques simply and elegantly. Most programmers, however, work on large programs that have evolved--or degenerated--over time. There are few well documented examples of this kind of "programming in the large" that can serve as reference examples. lcc isn't perfect, but this book documents both its good and bad points in detail and thus provides one such reference point.

Third, a compiler is one of the best demonstrations in computer science of the interaction between theory and practice. lcc displays both the places where this interaction is smooth and the results are elegant, as well as where practical demands strain the theory, which shows in the resulting code. Exploring these interactions in a real program helps programmers understand when, where, and how to apply different techniques. lcc also illustrates numerous C programming techniques.

Fourth, this book is an example of a "literate program." Like TEX: The Program by D.E. Knuth (Addison-Wesley, 1986), this book is lcc's source code and the prose that describes it. The code is presented in the order that best suits understanding, not in the order dictated by the C programming language. The source code that appears on the diskette is extracted automatically from the book's text files.

This book is well suited for self-study by both academics and professionals. The book and its diskette offer complete documented source code for lcc, so they may interest practitioners who wish to experiment with compilation or those working in application areas that use or implement language-based tools and techniques, such as user interfaces.

The book shows a large software system, warts and all. It could thus be the subject of a postmortem in a software engineering course, for example.

For compiler courses, this book complements traditional compiler texts. It shows one way of implementing a C compiler, while traditional texts survey algorithms for solving the broad range of problems encountered in compiling. Limited space prevents such texts from including more than a toy compiler. Code generation is often treated at a particularly high level to avoid tying the book to a specific computer.

As a result many instructors prepare a substantial programming project to give their students some practical experience. These instructors usually must write these compilers from scratch; students duplicate large portions and have to use the rest with only limited documentation. The situation is trying for both students and instructors, and unsatisfying to boot, because the compilers are still toys. By documenting most of a real compiler and providing the source code, this book offers an alternative.

This book presents full code generators for the MIPS R3000, SPARC, and Intel 386 and successor architectures. It exploits recent research that produces code generators from compact specifications. These methods allow us to present complete code generators for several machines, which no other book does. Presenting several code generators avoids tying the book to a single machine, and helps students appreciate engineering retargetable software.

Assignments can add language features, optimizations, and targets. When used with a traditional survey text, assignments could also replace existing modules with those using alternate algorithms. Such assignments come closer to the actual practice of compiler engineering than assignments that implement most of a toy compiler, where too much time goes to low-level infrastructure and accommodating repetitive language features. Many of the exercises pose just these kinds of engineering problems.

lcc has also been adapted for purposes other than conventional compilation. For example, it's been used for building a C browser and for generating remote-procedure-call stubs from declarations. It could also be used to experiment with language extensions, proposed computer architectures and code-generator technologies.

We assume readers are fluent in C and assembly language for some computer, know what a compiler is and have a general understanding of what one does, and have a working understanding of data structures and algorithms at the level covered in typical undergraduate courses; the material covered by Algorithms in C by R. Sedgewick (Addison-Wesley, 1990), for example, is more than sufficient for understanding lcc.

Acknowledgments

This book owes much to the many lcc users at AT&T Bell Laboratories, Princeton University, and elsewhere who suffered through bugs and provided valuable feedback. Those who deserve explicit thanks include Hans Boehm, Mary Fernandez, Michael Golan, Paul Haahr, Brian Kernighan, Doug McIlroy, Rob Pike, Dennis Ritchie, and Ravi Sethi. Ronald Guilmette, David Kristol, David Prosser, and Dennis Rithchie provided valuable information concerning the fine points of the ANSI Standard and its interpretation. David Gay helped us adapt the PFORT library of numerical software to be an invaluable stress test for lcc's code generators.

Careful reviews of both our code and our prose by Jack Davidson, Todd Proebsting, Norman Ramsey, William Waite, and David Wall contributed significantly to the quality of both. Our thanks to Steve Beck, who installed and massaged the fonts used for this book, and to Maylee Noah, who did the artwork with Adobe Illustrator.

Christopher W. Fraser
David R. Hanson

0805316701P04062001

From the Back Cover

This new text examines the design and implementation of lcc, a production-quality, retargetable compiler for the ANSI C programming language, designed at AT&T Bell Laboratories and Princeton University. The authors' innovative approach--a "literate program" that intermingles the text with the source code--gives a detailed tour of the code that explains the implementation and design decisions reflected in the software. And while most books describe toy compilers or focus on isolated pieces of code, the authors provide the entire source code for a real compiler, which is available via ftp. Structured as a self-study guide that describes the real-world tradeoffs encountered in building a production-quality compiler, this book is useful to individuals who work in application areas applying or creating language-based tools and techniques.

  • Explores the interaction between compiler theory and practice through the discussion of lcc.
  • Covers compiler theory only as needed to understand the implementation of lcc, focusing instead on practical, applied issues.
  • Encourages a broader understanding of programming in C through an examination of lcc, a production-quality compiler in use since 1988.
  • Provides full code generators for the MIPS R3000, SPARC, and Intel 80x86 architectures and successors.
  • The full source code for the lcc compiler, the three back ends, and the code-generator generator is freely available.
  • Uses icons and brief indices in the margins to cross- reference code fragments and connect code usage.
Audience

Senior undergraduate or graduate level second course. Any researcher or implementer of compilers for parallel or advanced computers.



0805316701B04062001

Product details

  • Publisher ‏ : ‎ Addison-Wesley Professional; 1st edition (January 31, 1995)
  • Language ‏ : ‎ English
  • Paperback ‏ : ‎ 584 pages
  • ISBN-10 ‏ : ‎ 0805316701
  • ISBN-13 ‏ : ‎ 978-0805316704
  • Item Weight ‏ : ‎ 3.53 ounces
  • Dimensions ‏ : ‎ 7.1 x 1.3 x 9.2 inches
  • Customer Reviews:
    4.2 out of 5 stars 25 ratings

About the authors

Follow authors to get new release updates, plus improved recommendations.

Customer reviews

4.2 out of 5 stars
4.2 out of 5
25 global ratings

Top reviews from the United States

Reviewed in the United States 🇺🇸 on November 2, 2016
Reviewed in the United States 🇺🇸 on May 21, 2022
Reviewed in the United States 🇺🇸 on October 16, 2012
5 people found this helpful
Report abuse
Reviewed in the United States 🇺🇸 on April 25, 2019
One person found this helpful
Report abuse
Reviewed in the United States 🇺🇸 on December 2, 2016
Reviewed in the United States 🇺🇸 on December 13, 2001
26 people found this helpful
Report abuse
Reviewed in the United States 🇺🇸 on October 22, 2005
7 people found this helpful
Report abuse
Reviewed in the United States 🇺🇸 on May 28, 2000
5 people found this helpful
Report abuse

Top reviews from other countries

derek horne
4.0 out of 5 stars only bought it for the 3 different retargetable computer code ...
Reviewed in the United Kingdom 🇬🇧 on May 13, 2017
Bernd Ulmann
3.0 out of 5 stars Inhalt toll, Form na ja...
Reviewed in Germany 🇩🇪 on December 11, 2016