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
    Basics of compiler designTorben ©. Mogensen

    Basics of compiler design

    Torben ©. Mogensen · 2010

    Computer Science
    Open Library
    Stats for nerds
    4recommend
    9mentions
    9people
    2008–2019years
    44% recommend56% neutral

    Mentions per year

    2008201020122014201620182019

    What Hacker News says

    1. chrisaycockDec 2019
      As someone currently building a language, books like this have been critical. Basics of Compiler Design covers a lot of the common ground of compiler construction from a more theoretical standpoint.

      Other recent books I've found really helpful include:

      Crafting Interpreters by Bob Nystrom (@munificent on HN)

      https://www.craftinginterpreters.com

      Language Implementation Patterns by Terence Parr (creator of ANTLR)

      https://pragprog.com/book/tpdsl/language-implementation-patt...

      thread
    2. aalhourJul 2017
      Hey, I have been in your place like last year, and as a result of researching the field of Compilers and Interpreters construction I wrote a curated list of awesome resources on Compilers, Interpreters and Runtimes, feel free to check it out at: https://github.com/aalhour/awesome-compilers.

      The list is huge, so I recommend you start with the Compilers course by Stanford and go through one of the two following books as a parallel reading: 1. Engineering a Compiler, K. Cooper, L. Torczon. 2. Modern Compiler Implementation in ML, by A. Appel.

      If you want a smaller book, the I recommend the Basics of Compiler Design by T. Mogensen, it is a nice and short one.

      All of these resources are linked to in the list.

      Happy tinkering!

      thread
    3. 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
    4. rlmMay 2009
      I've read it as a part of the introductory compiler course at DIKU (Computer Science dept. of University of Copenhagen).

      It's good for exactly what the title says: Basics of Compiler Design. It won't make you a compiler guru, but it will give you a good grasp of the fundamentals.

      If anyone is interested, I could share the weekly assignments and the exam project from the course.

      The advanced compiler course at DIKU uses Modern Compiler Implementation in ML: http://www.cs.princeton.edu/~appel/modern/ml/.

      thread
    5. bhrgunathaAug 2017
      Compiler/transpiler - same difference.

      I think they've gone out of fashion now, but when I learned about compilers we were introduced to T-diagrams, sometimes called tombstone or bratman diagrams and shown how to bootstrap a compiler for a high level language from scratch [1].

      Torben Mogensen's Basics of Compiler Design [2] - Chapter 13 is devoted to bootstrapping a compiler, which introduces them.

      [1] scratch meaning a computer (with relevant hardware) with a CPU with it's machine code instructions and some way to make files containing those instructions. You can do this even without assembler, that's the first step. Of course no-one would do this now, but it's a necessary step developing the first high level languages and compilers.

      [2] http://www.diku.dk/hjemmesider/ansatte/torbenm/Basics/

      thread
    6. creatureNov 2013
      Basics of Compiler Design is quite theoretical, but it's available online for free: http://www.diku.dk/~torbenm/Basics/
      thread

    Related

    Cover of Engineering a compiler
    2007–2026

    Engineering a compiler

    Keith D. Cooper
    39 recommend · 91
    Cover of Modern compiler design
    2008–2026

    Modern compiler design

    Dick Grune
    12 recommend · 30
    Cover of Modern compiler implementation in C
    2010–2024

    Modern compiler implementation in C

    Andrew W. Appel
    8 recommend · 13
    Cover of Modern compiler implementation in ML
    2009–2024

    Modern compiler implementation in ML

    Andrew W. Appel
    24 recommend · 68
    Cover of Introduction to Compiler Design
    2018–2026

    Introduction to Compiler Design

    Torben Ægidius Mogensen
    1 recommend · 4
    Cover of How to Design Programs
    2007–2026

    How to Design Programs

    Matthias Felleisen
    277 recommend · 776
    Cover of Compiler construction
    2008–2026

    Compiler construction

    Niklaus Wirth
    30 recommend · 81
    Cover of Advanced compiler design and implementation
    2008–2025

    Advanced compiler design and implementation

    Steven S. Muchnick
    13 recommend · 25