5 ms·
Thank you - that's informative. >99% of the time spent writing a compiler will be elsewhere. Out of interest, has the distribution of labor in that remaining
by delhanty 9y ago
Thank you - that's informative.
>99% of the time spent writing a compiler will be elsewhere.
Out of interest, has the distribution of labor in that remaining 99% changed at all since you first started out?
For example, do things like LLVM change anything?
- WalterBright 9y agoI re-used the Digital Mars C++ optimizer and back end for the dmd D compiler, so that would be like using LLVM for an optimizer and back end. I still wind up spending nearly all my time on the D front end, and not the lexer/parser. The time spent on the lexer/parser is a rounding error. Besides, build the lexer/parser by hand. The mystery of how to do them will evaporate, and you'll find you can apply that knowledge to all sorts of other tasks.