a C compiler banner

a C compiler

3 devlogs
14h 5m 42s

I am trying to get my hands dirty with a c compiler, I plan on implementing atleast basic type systems and some optimisations!

This project uses AI

Debugging and sometimes making it write boring boilerplate code

Demo Repository

Loading README...

vighneshsawant366

Shipped this project!

Hours: 3.5
Cookies: 🍪 34
Multiplier: 9.86 cookies/hr

Well got a 2x multiple for writing a compiler lol!

vighneshsawant366

Implemented Logical operators and relational, taking care of short circuiting also!
SO MUCH more stuff is there

Attachment
0
vighneshsawant366

Shipped this project!

Hours: 11.7
Cookies: 🍪 23
Multiplier: 1.96 cookies/hr

Rewriting ir 3 times was not so fun, I learnt that making design decisions before is a good idea!

vighneshsawant366

Ok i forgot to devlog this, but I’ll do now.
In my first pass I had no IR so I had to rewrite a lot of stuff,
In my second try I chose a not so good IR so I had to rewrite IR AGAINNNN.
So finally I have settled on TACKY representation, on my way to implement a lot more stuff!!!!
My parsing approach was recursive decent parser, but had to change that up a little also as it started getting a little unwieldy!

Attachment
0