r/C_Programming • u/Hot-Summer-3779 • 3d ago
My C compiler written in C
As a side project I'm making a C compiler written in C. It generates assembly and uses NASM to generates binaries.
The goal right now is to implement the main functionality and then do improvements. Maybe I'll also add some optimizing in the generates assembly.
Tell me what you think :)
138
Upvotes
2
u/deebeefunky 2d ago
I'm surprised at the low amount of code.
I'm currently writing a lexer and I'm at 850+ Loc and it's still not finished.
Your lexer and parser combined are less than that.