Skip to content
Tech News
← Back to articles

A Compiler Writing Journey

read original more articles
Why This Matters

This project offers valuable insights into the practical process of building a self-compiling compiler for a subset of C, serving as an educational resource for developers interested in compiler design. By documenting each step, it demystifies complex concepts and encourages hands-on learning, which can inspire innovation and deeper understanding within the tech community. For consumers, it highlights the importance of open-source contributions and transparency in software development.

Key Takeaways

A Compiler Writing Journey

In this Github repository, I'm documenting my journey to write a self-compiling compiler for a subset of the C language. I'm also writing out the details so that, if you want to follow along, there will be an explanation of what I did, why, and with some references back to the theory of compilers.

But not too much theory, I want this to be a practical journey.

Here are the steps I've taken so far:

I've stopped work on acwj and now I'm writing a new language called alic from scratch. Check it out!

Copyrights

I have borrowed some of the code, and lots of ideas, from the SubC compiler written by Nils M Holm. His code is in the public domain. I think that my code is substantially different enough that I can apply a different license to my code.

Unless otherwise noted,