Search code examples
compiler-theory

Writing a Compiler in C


I am very interested in compilers and how they work so I want to know if there are good sources or books to write a compiler from scratch. As I am a novice C programmer it would be perfect if the guide(s) is for C.

Thank you.


Solution

  • "Compiler Construction for Digital Computers" 1st Edition by David Gries
    is my favorite, and it has good reviews