Skip to content
HomeVideosBooks
AllTopicsTrends
BlogsPodcasts
HistoryListsWatch laterLiked videosFollowing

The videos, books, blogs and podcasts Hacker News keeps recommending, all in one place.

VideosBooksBlogsPodcastsAboutPrivacySettings

Data from Hacker News, HackerTube, HackerBooks, HackerBlogs and Open Library. Credits · Not affiliated with Y Combinator.

HomeVideosBooksBlogsPodcasts
Ctrl K
    Cover of Modern compiler implementation in C

    Modern compiler implementation in C

    Andrew W. Appel, Maia Ginsburg · 2004

    Describes all phases of a modern compiler, including techniques in code generation and register allocation for imperative, functional and object-oriented languages.

    Computer ScienceProgramming
    Open LibraryAmazon
    Stats for nerds
    8recommend
    13mentions
    12people
    2010–2024years
    69% recommend23% neutral8% critical

    Mentions per year

    20102012201420162018202020222024

    What Hacker News says

    1. pjmlpJul 2024
      Get Modern Compiler Implementation in C [0] (with Java and ML versions also available),or the Kaleidoscope LLVM tutorial [1], and do the whole thing in 2 weeks, as starting point.

      [0] - https://www.cs.princeton.edu/~appel/modern/c/

      [1] - https://llvm.org/docs/tutorial/

      thread
    2. wtetznerJul 2020
      I’m not sure I’d agree with the Dragon Book recommendation. I think a better starting point might be Appel’s Modern Compiler Implementation in C/Java/ML.
      thread
    3. pjmlpFeb 2020
      For anyone that wants to learn about optimizations in AOT compiled ML languages, have a look at:

      "The Implementation of Functional Programming Languages"

      "Compiling with Continuations"

      "Modern Compiler Implementation in ..." (C, Java and ML variants)

      Although oriented towards Lisp, "Lisp in small pieces" is a classical book as well, with many optimizations like inlining of lambda calls across multiple call levels.

      thread
    4. rwallaceJan 2017
      Try the Tiger Book instead (a.k.a. 'Modern compiler implementation in C', or there are Java or ML versions if those are more to your taste). It has a better balance: more to the point treatment of lexing and parsing, leaving more space for a more comprehensive treatment of optimization and code generation.
      thread
    5. DearVoltJan 2017
      Wow, that's awesome! I picked up mine second hand at a textbook distributor for the equivalent of about $30.

      For anyone interested in other books on compiler construction, I would recommend these:

      - "The Basics of Compiler Design" by Torben Mogensen

      - "Modern Compiler Implementation in C" by Andrew Appel (ML and Java versions available too)

      - "Modern Compiler Design" by Grune, Bal et al.

      The Dragon Book is obviously infamous for this topic, but I would recommend covering at least two slightly more basic texts before taking it on.

      thread
    6. quincunxDec 2015
      After grinding through a bunch of compiler books I have to mention "Modern Compiler Implementation in C - Andrew A. Appel": http://www.amazon.co.uk/dp/0521607655 as one that stands out.

      For LALR Parsers and DFA scanners and the like, I found the original Dragon Book http://www.amazon.co.uk/dp/B00EKYURHS is still best.

      Both books are very accessible reading.

      thread

    Related

    Cover of Compiler design in C
    2011–2026

    Compiler design in C

    Allen I. Holub
    11 recommend · 28
    Cover of The annotated C++ reference manual
    2013–2026

    The annotated C++ reference manual

    Margaret A. Ellis
    2 recommend · 13
    Cover of A retargetable C compiler
    2010–2026

    A retargetable C compiler

    Christopher W. Fraser
    9 recommend · 23
    Basics of compiler designTorben ©. Mogensen
    2008–2019

    Basics of compiler design

    Torben ©. Mogensen
    4 recommend · 9
    Cover of Modern compiler design
    2008–2026

    Modern compiler design

    Dick Grune
    12 recommend · 30
    Cover of Compilers, principles, techniques, and tools
    2007–2026

    Compilers, principles, techniques, and tools

    Alfred V. Aho
    195 recommend · 958
    Cover of Modern compiler implementation in ML
    2009–2024

    Modern compiler implementation in ML

    Andrew W. Appel
    24 recommend · 68
    Cover of Engineering a compiler
    2007–2026

    Engineering a compiler

    Keith D. Cooper
    39 recommend · 91