« Back to the Programming/Coding/Developing Forum

some good resources on the making of a compiler?

I can't find much on how to do a compiler other than a road map,do you guys have any?


Also I'm documenting on the making of my compiler here on my blog.


Report Topic

2 Replies

Sort Replies:

Reply by /iːˈmɪər/

posted

compiler development is a [justifiably] _daunting_ task for the naive. however, compiler development / programming language theory is a convivial field deep within a steep rabbit hole of furries, femboys, Rust/Lisp/Haskell evangelists, and knee-high-sock-wearing Arch/Nix users.

for more elaborate and credible info, i highly suggest visiting Reddit for the subreddits r/ProgrammingLanguages and r/Compilers (there are many posts of resources to redirect to), Discord for the server "Programming Language Development", and X/Twitter for the community "Programming Language Theory" (though more technical, you're able to interact with very knowledgable people). be in a look-out for keywords like "programming language", "programming language theory", "compiler", "interpreter".

the people of the PLT/compiler community are pedantic and friendly: if you make a mistake, expect multiple paragraphs elaborately educating you. ask as many questions as you like - the more questions, the more intuition you'll garner.

notable resources:

  1. Crafting Interpreters
  2. "Programming Language Theory", X/Twitter community
  3. Kaleidoscope: Kaleidoscope Introduction and the Lexer — LLVM 21.0.0git documentation

3 is especially interesting because it's a tutorial by LLVM, a widely _widely_ used infrastructure for compilers - think of any popular programming language, LLVM is used for an implementation of it.


Permalink Report Reply

Reply by Naburgondux

posted

Thanks miar,I know it's exceedingly difficult to create a usable compiler,but for most of it,it will just be a proof of concept rather than a full fledged compiler with optimal code optimization and all,still, thanks for the resources.


Permalink Report Reply