4 ms·
How ('yeah im going to write this') do you start such project like a c compiler? Seems like a huge thing to write. What did you write first? Did you already hav
by mobilemidget 7y ago
How ('yeah im going to write this') do you start such project like a c compiler? Seems like a huge thing to write. What did you write first? Did you already have a lot of compiler knowledge so you had a good idea/structure/flow etc in your mind already? And how long did it take you?
tia
- mhh__ 7y agoA compliant C compiler is probably a year's work in a modern language give or take?
- WalterBright 7y agoIt takes 3-5 months just to write a compliant preprocessor. Writing a basic code generator is a year, writing a basic optimizer is another year. But if you want a competitive compiler, better pencil out 10 years.
- WalterBright 7y agoI'd written a couple compiler like toys before, but nothing like a real compiler. I just started writing it. Took a couple years.