Skip to content
Register Sign in Wishlist
Modern Compiler Implementation in Java

Modern Compiler Implementation in Java

2nd Edition

$94.99 (X)

  • Date Published: October 2002
  • availability: Available
  • format: Hardback
  • isbn: 9780521820608

$ 94.99 (X)

Add to cart Add to wishlist

Other available formats:

Request examination copy

Instructors may request a copy of this title for examination

Product filter button
About the Authors
  • 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.

    • The new edition features a newly designed, easy-to-use software project in Java for a subset of Java itself
    • Expanded coverage of object-oriented concepts; also includes coverage of imperative and functional languages
    • Keeps up with the revolution in computer architecture since 1985, including practical back-end issues not available in most texts, with current techniques in instruction selection, code generation and register allocation
    Read more

    Reviews & endorsements

    "[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

    See more reviews

    Customer reviews

    Not yet reviewed

    Be the first to review

    Review was not posted due to profanity


    , create a review

    (If you're not , sign out)

    Please enter the right captcha value
    Please enter a star rating.
    Your review must be a minimum of 12 words.

    How do you rate this item?


    Product details

    • Edition: 2nd Edition
    • Date Published: October 2002
    • format: Hardback
    • isbn: 9780521820608
    • length: 512 pages
    • dimensions: 257 x 208 x 33 mm
    • weight: 1.27kg
    • contains: 80 b/w illus. 35 tables 135 exercises
    • availability: Available
  • Table of Contents

    Part I. Fundamentals of Compilation:
    1. Introduction
    2. Lexical analysis
    3. Parsing
    4. Abstract syntax
    5. Semantic analysis
    6. Activation records
    7. Translation to intermediate code
    8. Basic blocks and traces
    9. Instruction selection
    10. Liveness analysis
    11. Register allocation
    12. Putting it all together
    Part II. Advanced Topics:
    13. Garbage collection
    14. Object-oriented languages
    15. Functional programming languages
    16. Polymorphic types
    17. Dataflow analysis
    18. Loop optimizations
    19. Static single-assignment form
    20. Pipelining and scheduling
    21. The memory hierarchy
    Appendix: Mini-Java reference manual.

  • Resources for

    Modern Compiler Implementation in Java

    Andrew W. Appel

    Find resources associated with this title

    Type Name Unlocked * Format Size

    Showing of

    Back to top

    This title is supported by one or more locked resources. Access to locked resources is granted exclusively by Cambridge University Press to instructors whose faculty status has been verified. To gain access to locked resources, instructors should sign in to or register for a Cambridge user account.

    Please use locked resources responsibly and exercise your professional discretion when choosing how you share these materials with your students. Other instructors may wish to use locked resources for assessment purposes and their usefulness is undermined when the source files (for example, solution manuals or test banks) are shared online or via social networks.

    Supplementary resources are subject to copyright. Instructors are permitted to view, print or download these resources for use in their teaching, but may not change them or use them for commercial gain.

    If you are having problems accessing these resources please contact

  • Instructors have used or reviewed this title for the following courses

    • Compiler Construction
    • Compiler Design
    • Compiler Design or Special Problems
    • Compilers
    • Compilers and Interpreters
    • Computer Languages
    • Principles of Compiler Design
    • Programming Languages
    • Software Design and Implementation
  • Author

    Andrew W. Appel, Princeton University, New Jersey


    Jens Palsberg, Purdue University, Indiana

Sign In

Please sign in to access your account


Not already registered? Create an account now. ×

Sorry, this resource is locked

Please register or sign in to request access. If you are having problems accessing these resources please email

Register Sign in
Please note that this file is password protected. You will be asked to input your password on the next screen.

» Proceed

You are now leaving the Cambridge University Press website. Your eBook purchase and download will be completed by our partner Please see the permission section of the catalogue page for details of the print & copy limits on our eBooks.

Continue ×

Continue ×

Continue ×

Find content that relates to you

Join us online

This site uses cookies to improve your experience. Read more Close

Are you sure you want to delete your account?

This cannot be undone.


Thank you for your feedback which will help us improve our service.

If you requested a response, we will make sure to get back to you shortly.

Please fill in the required fields in your feedback submission.