Comment by versteegen
3 hours ago
I have wondered whether it's worth storing instruction offsets (from the first instruction) rather than raw instruction pointers to increase cache efficiency, then they could be encoded in just 2 (or at worst 3) bytes. At the cost of an extra register.
That sounds like a good middle ground. Ahh I wish I had some more time, I’d love to benchmark all three and see how they compare.
In my own you VM, I do actually have a spare general purpose registers available for use. Now I just need to find the time to try it out…