3 ms·
At any time a coroutine switch could happen, doesn't the compiler statically know how many registers would be allocated by this anyway? Register numbers aren't
by kimixa 2y ago
At any time a coroutine switch could happen, doesn't the compiler statically know how many registers would be allocated by this anyway?
Register numbers aren't dynamically indexed, they're baked into the instruction stream, so there's not really any new information you can't get from the instruction pointer and a static (compiler-generated) lookup table?
- JonChesterfield 2y agoYep, the compiler can do it all. However getting proof of concepts together to justify shipping the compiler complexity can go better with more work done by the runtime code.