3 ms·
Might be an interpreter or an emulator. That’s where you often want to preserve registers or flags and have jump tables. This is one of the remaining cases whe
by vardump 10mo ago
Might be an interpreter or an emulator. That’s where you often want to preserve registers or flags and have jump tables.
This is one of the remaining cases where the current compilers optimize rather poorly: when you have a tight loop around a huge switch-statement, with each case-statement performing a very small operation on common data.
In that case, a human writing assembler can often beat a compiler with a huge margin.
- pedrocr 10mo agoI'm curious if that's still the case generally after things like musttail attributes to help the compiler emit good assembly for well structured interpreter loops: https://blog.reverberate.org/2025/02/10/tail-call-updates.html https://blog.reverberate.org/2025/02/10/tail-call-updates.ht...