Modern Compiler Implementation in Java and over one million other books are available for Amazon Kindle. Learn more

Buy New

or
Sign in to turn on 1-Click ordering.
or
Amazon Prime Free Trial required. Sign up when you check out. Learn More
Buy Used
Used - Good See details
$26.99 & this item ships for FREE with Super Saver Shipping. Details

or
Sign in to turn on 1-Click ordering.
 
   
Sell Back Your Copy
For a $14.25 Gift Card
Trade in
More Buying Choices
Have one to sell? Sell yours here
Modern Compiler Implementation in Java
 
 
Start reading Modern Compiler Implementation in Java on your Kindle in under a minute.

Don't have a Kindle? Get your Kindle here, or download a FREE Kindle Reading App.

Modern Compiler Implementation in Java [Hardcover]

Andrew W. Appel (Author), Jens Palsberg (Contributor)
2.4 out of 5 stars  See all reviews (23 customer reviews)

List Price: $99.00
Price: $80.93 & this item ships for FREE with Super Saver Shipping. Details
You Save: $18.07 (18%)
  Special Offers Available
o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o
In Stock.
Ships from and sold by Amazon.com. Gift-wrap available.
Want it delivered Monday, January 30? Choose One-Day Shipping at checkout. Details
Textbook Student FREE Two-Day Shipping for Students. Learn more

Formats

Amazon Price New from Used from
Kindle Edition $63.20  
Hardcover $80.93  
Paperback --  
Sell Back Your Copy for $14.25
Whether you buy it used on Amazon for $26.00 or somewhere else, you can sell it back through our Book Trade-In Program at the current price of $14.25.
Used Price$26.00
Trade-in Price$14.25
Price after
Trade-in
$11.75

Book Description

052182060X 978-0521820608 October 21, 2002 2
This textbook describes all phases of a compiler: lexical analysis, parsing, abstract syntax, semantic actions, intermediate representations, instruction selection via tree matching, dataflow analysis, graph-coloring register allocation, and runtime systems. It includes thorough coverage of current techniques in code generation and register allocation, and the compilation of functional and object-oriented languages. The most accepted and successful techniques are described and illustrated with actual Java^TM® classes. The first part is suitable for a one-semester first course in compiler design. The second part; which includes the compilation of object-oriented and functional languages, garbage collection, loop optimization, SSA form, instruction scheduling, and optimization for cache-memory hierarchies; can be used for a second-semester or graduate course. This new edition includes more discussion of Java and object-oriented programming concepts such as visitor patterns plus a new Mini-Java programming project. A unique feature is the newly redesigned compiler project in Java for a subset of Java itself. The project includes both front-end and back-end phases.

Special Offers and Product Promotions

  • Buy $50 in qualifying physical textbooks, get $5 in Amazon MP3 Credit. Here's how (restrictions apply)

Frequently Bought Together

Modern Compiler Implementation in Java + Database Management Systems + Computer Organization and Design, Fourth Edition: The Hardware/Software Interface (The Morgan Kaufmann Series in Computer Architecture and Design)
Price For All Three: $286.39

Show availability and shipping details

Buy the selected items together

Customers Who Bought This Item Also Bought


Editorial Reviews

Review

"...fit[s] comfortably and usefully between cookbooks and encyclopedias on compilation...suitable for self-study." Computing Reviews

"A well-written book, which strictly adheres to a no-nonsense style." Computing Reviews

Book Description

This textbook describes all phases of a compiler. It includes good coverage of current techniques in code generation and register allocation, as well as the compilation of functional and object-oriented languages, that is missing from most books. Advanced chapters cover SSA form, loop scheduling, and optimization for cache-memory hierarchies. The most accepted and successful techniques are described in a concise way and illustrated with actual Java classes. This new edition includes more discussion of Java and object-oriented programming concepts such as visitor patterns plus a new Mini-Java programming project. A unique feature is the newly redesigned compiler project in Java, for a subset of Java itself. The project includes both front-end and back-end phases, so that students can build a complete working compiler in one semester.

Product Details

  • Hardcover: 512 pages
  • Publisher: Cambridge University Press; 2 edition (October 21, 2002)
  • Language: English
  • ISBN-10: 052182060X
  • ISBN-13: 978-0521820608
  • Product Dimensions: 9.4 x 7.6 x 1.1 inches
  • Shipping Weight: 2.4 pounds (View shipping rates and policies)
  • Average Customer Review: 2.4 out of 5 stars  See all reviews (23 customer reviews)
  • Amazon Best Sellers Rank: #564,327 in Books (See Top 100 in Books)

More About the Author

Discover books, learn about writers, read author blogs, and more.

 

Customer Reviews

23 Reviews
5 star:
 (3)
4 star:
 (4)
3 star:
 (2)
2 star:
 (5)
1 star:
 (9)
 
 
 
 
 
Average Customer Review
2.4 out of 5 stars (23 customer reviews)
 
 
 
 
Share your thoughts with other customers:
Most Helpful Customer Reviews

369 of 442 people found the following review helpful:
1.0 out of 5 stars ALL HOPE ABANDON, YE WHO ENTER HERE., December 10, 2001
By A Customer
I held the accursed object with both hands and examined it closely. It felt small and weak There was a change after I finished the exam. Suddenly what had once seemed an insurmountable obstacle had been reduced to a collection of molecules. Something small and without worth, a mere shadow of the former imposition. Yes, I held a mere object in my hands. Something, which would no longer hold, power over me. I was suddenly struck by a tremendous urge to exert my power over it. I envisioned myself beating the book against tress and concrete benches, hurling it baseball-pitch style at brick walls, hitting it with a ten-pound sledge at full tilt, drop-kicking it off of high buildings, tearing it cover-from-cover with my bare hands.
But most importantly, most eerily satisfying, were the visions of setting the terrible book on its side, allowing the pages to ruffle gently under the cover,-and igniting a book of matches underneath the pages. I longed to see it burn. I wanted to, through my own volition and physical power, reduce it. O book most foul, into the optimally entropic form, then relieve my bladder onto its smoldering ashes. I could think of nothing more satisfying.

I'm not entirely sure why I didn't, just then and there, outside the Wetherill Laboratory of Chemistry, satisfy my urges and just destroy the beast. Perhaps I'm not entirely certain that my travail with 'modern compiler imple- mentation in Java" is over. I won't be certain of that until I stand with a report card in hand. But the blind rage continues.

It sits on my shelf until then, forever staring at me with a bright red cover and insulting lower-case sans- serif typeface, the author's name 'Appel" an invocation of the original sin which lies within. Every time I see it there, I have feelings of hatred, angst, depression, and bitterness. I feel the bile rise in my throat and the heartburn of a dozen sleepless nights staring into its murky depths at the merest glance. The angrily pacing tiger on the front cover stands as a warning to all who would journey within of the dangers which await. Inside the front cover, scrawled in all capital letters in indelible black marker by a shaky hand, lie the words "ALL HOPE ABANDON, YE WHO ENTER HERE."

Apparently, the student who possessed it before me shares my enmity. It is truly a foul thing, an ancient, unknowable evil. By all rights and privileges, it should be written in virgin blood on human skin and bound with the tortured souls of those who dared to face it and lost. I know what must be done. It must be struck from the universe. It must be, for the good of all mankind, rendered forevermore unreadable, so it may not torment the others who, unprepared as I was four months ago, would even briefly consider themselves strong enough to face what lies within. Fools! None may face the tiger and win! Those who survive the course are never again the same person as before the course. Those who live to tell of their encounter with the book rarely talk about it, and do so in hushed tones, fearful of its horrid consequences. I cannot abide this world with the nowledge that it still exists.

Take thy interference graph from out my heart, and take thy intermediate representation from off my bookshelf.

TAKE THY INTERFERENCE GRAPH FROM OUT MY HEART, AND TAKE THY INTERMEDIATE REPRESENTATION FROM OFF MY BOOKSHELF.

quath the Tiger, 'Only if you passed.'

Patrick Fitzgerald, Senior, School of Science, Purdue University

Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No


29 of 31 people found the following review helpful:
3.0 out of 5 stars A reasonable undergraduate compilers text, August 11, 1999
By A Customer
I find this to be one of the better choices currently available as a textbook for an undergraduate compilers course. As it promises, it presents a modern view of compiler construction, and many difficult new techniques are covered fairly clearly. The book is particularly appealing because it provides a fairly explicit cookbook for how to construct a compiler from start to finish, and the different parts of the book fit together much better than in, say, the Dragon Book. It also contains good material on implementing more advanced language features.

The book has a number of weaknesses that have been touched on by other reviewers. The number of errors in the text is larger than it should be. The explanations of certain topics are weak: LR parsing and dataflow equations come to mind. In general, topics are covered in only slightly more depth than a class lecture on the topic would reach. This makes the book less useful as a reference after the course ends.

Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No


19 of 22 people found the following review helpful:
2.0 out of 5 stars How someone else's compiler works piece by piece..., September 25, 2002
By 
"mikem9" (Waltham, MA USA) - See all my reviews
This book does show you how a compiler is implemented, literally. The author has a compiler already coded which he breaks down piece by piece and shows you how the pieces work.

Unfortunately, instead of only giving you what you need to know for a specific piece, alot of future material is added too soon because it's already in the code. What would've been good is to trim out that stuff and give examples of code that wasn't part of the complete compiler but explained a specific point and only that point.

Too much time is spent explaining pre-existing code that implements the modules in a ready-built compiler, and not enough time is spent describing what each module in a compiler is supposed to do and how you'd do it yourself or alternative ways of implementing functionality.

If only there was a compiler book that was halfway between this one and the Dragon book...

Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No

Share your thoughts with other customers: Create your own review
 
 
 
Most Recent Customer Reviews











Only search this product's reviews



Inside This Book (learn more)
First Sentence:
This book describes techniques, data structures, and algorithms for translating programming languages into executable code. Read the first page
Key Phrases - Statistically Improbable Phrases (SIPs): (learn more)
public void visit, predictive parsing table, memo slot, public int eval, thunk function, maximal munch, answer exec, int visit, loop preheader, precedence directives, generational collection, dominator tree, building syntax trees, dataflow equations, reachable data, ith predecessor, dominance frontier, liveness analysis, return new tree, immediate dominator, pointer reversal, interference graph, dynamic method lookup, conditional constant propagation, semantic analysis phase
Key Phrases - Capitalized Phrases (CAPs): (learn more)
I-Fetch Read Unpack, Perform Algorithm, Analyze Algorithm
New!
Books on Related Topics | Concordance | Text Stats
Browse Sample Pages:
Front Cover | Table of Contents | First Pages | Index | Back Cover | Surprise Me!
Search Inside This Book:




What Other Items Do Customers Buy After Viewing This Item?


Tags Customers Associate with This Product

 (What's this?)
Click on a tag to find related items, discussions, and people.
 

Your tags: Add your first tag
 

Customer Discussions

This product's forum
Discussion Replies Latest Post
No discussions yet

Ask questions, Share opinions, Gain insight
Start a new discussion
Topic:
First post:
Prompts for sign-in
 


Active discussions in related forums
Search Customer Discussions
Search all Amazon discussions
   
Related forums





Look for Similar Items by Category


Look for Similar Items by Subject