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 A Small C compiler

    A Small C compiler

    James E. Hendrix · 1988

    ProgrammingComputer Science
    Open LibraryAmazon
    Stats for nerds
    1recommend
    4mentions
    4people
    2018–2024years
    25% recommend75% neutral

    Mentions per year

    2018201920202021202220232024

    What Hacker News says

    1. peter_d_shermanMay 2019
      Start here:

      Boolean Logic & Logic Gates: Crash Course Computer Science #3

      https://www.youtube.com/watch?v=gI-qXk7XojA

      It's a nice, simple, easily watchable and highly visual overview of what you're going to start learning.

      From there, it's virtually guaranteed that YouTube will suggest more relevant videos, and you'll be on your way.

      Then later, you might want some books on "Digital Logic" (that's the keyword to search for).

      To go up from that level of abstraction, I recommend "The Personal Computer from the Inside Out: The Programmer's Guide to Low-Level PC Hardware and Software (3rd Edition)" By Murray Sargent III and Richard L. Shoemaker: https://www.amazon.com/gp/product/0201626462

      To learn Assembly Language: Randall Hyde's Art Of Assembly Language http://www.plantation-productions.com/Webster/www.artofasm.c...

      To learn Compilers: Compiler Construction, by Niklaus Wirth http://www.ethoberon.ethz.ch/WirthPubl/CBEAll.pdf

      Let's Build A Compiler, Jack W. Crenshaw & Marco van de Voort: https://www.stack.nl/~marcov/compiler.pdf

      A Small C Compiler, by James E. Hendrix (sorry, this one is behind a pay/registration wall) https://www.scribd.com/document/289762150/Small-C-compiler-v... https://en.wikipedia.org/wiki/Small-C

      Tiny C Compiler https://bellard.org/tcc/

      Wikipedia articles related to compilers: Compilers, General: https://en.wikipedia.org/wiki/Compiler BNF: https://en.wikipedia.org/wiki/Backus%E2%80%93Naur_form Shunting Yard Algorithm: https://en.wikipedia.org/wiki/Shunting-yard_algorithm Parse Trees: https://en.wikipedia.org/wiki/Parse_tree

      Here's a great way to visually explore how various compilers create assembly language instructions: https://godbolt.org/

      Up the abstraction level from all of that is LISP and LISPlike languages, Tensorflow, ML, and related high-level abstractions -- but you probably are more aware of those than the lower levels...

      Anyway, good luck! It's a wonderful journey to undertake!

      thread
    2. euroderfDec 2024
      Similar: "A Small-C Compiler", by James E Hendrix (not Jim E, not Jimi).

      Modify source, compile self, repeat.

      This repo claims to have the code: https://github.com/DosWorld/smallc

      thread
    3. a_e_kAug 2024
      FWIW, (i.e., for some historical fun) Dr. Dobbs Journal published a program called "Small C Compiler" by Ron Cain back in 1980. [1]

      Later, it was expanded by James Hendrix into a full book with a more complete implementation. [2] (As a kid, coming across this book in the bargain bin at CompUSA was what led to me learning C. I still have my copy!)

      [1] https://archive.org/details/dr_dobbs_journal_vol_05_201803/p...

      [2] https://www.amazon.com/Small-Compiler-Language-Theory-Design...

      thread
    4. bogomipzSep 2018
      Thanks for this suggestion.

      In case anyone else is interested, there is a freely available ISO of the the book available from Dr Dobbs Journal. From the README in the ISO:

      >"Welcome to Dr. Dobb's Small-C Resource CD-ROM, the definitive collection of Small-C related information and source code. This CD-ROM includes the full text to James Hendrix's book "A Small-C Compiler: Language, Usage, Theory, and Design," selected articles on Small-C from "Dr. Dobb's Journal" magazine, and Small-C implementations for a number of processor platforms, including the 8080, Z80, 6502, and others."

      It's available here:

      http://www.drdobbs.com/developer-network-small-c-compiler-bo...

      thread

    Related

    Cover of Compiler construction
    2008–2026

    Compiler construction

    Niklaus Wirth
    30 recommend · 81
    Cover of The C Programming Language
    2007–2026

    The C Programming Language

    Brian W. Kernighan
    246 recommend · 604
    Cover of A retargetable C compiler
    2010–2026

    A retargetable C compiler

    Christopher W. Fraser
    9 recommend · 23
    Cover of Engineering a compiler
    2007–2026

    Engineering a compiler

    Keith D. Cooper
    39 recommend · 91
    Cover of Writing a C Compiler
    2024–2026

    Writing a C Compiler

    Nora Sandler
    7 recommend · 10
    Cover of Compiler design in C
    2011–2026

    Compiler design in C

    Allen I. Holub
    11 recommend · 28
    Cover of The Standard C Library
    2009–2026

    The Standard C Library

    P. J. Plauger
    recommend · 29
    17
    Cover of Modern compiler implementation in C
    2010–2024

    Modern compiler implementation in C

    Andrew W. Appel
    8 recommend · 13