|
|
|
|
|
by dist1ll
932 days ago
|
|
All of this is fascinating. I believe single-pass compilation is underrated, and quickly disregarded by a large body of the PL community as anachronistic. I think that's complete nonsense. Just take one look at the massive build infrastructure that's driving modern monorepos to see how incredibly crucial fast compile-times are. > Jump tables everywhere. In general the compiler was quite table driven. It would be interesting to see how this approach fares in the face of modern branch prediction on modern CPUs. |
|
It's also largely irrelevant if you want optimized code generation, especially across multiple procedures, since that requires you to read abstract representations of the code into memory and deal with them globally which is the opposite of single-pass compilation.