News for hackers. Stuff that matters.
Re:Show HN: I wrote a WebAssembly Interpreter and Toolkit in C by naasking on Monday January 09, 2023 @04:06PM (#34316067)
Very true. I imagine that grouping instructions that use the same registers into their own functions would help with that (arithmetic expressions tend to generate sequences like this). Then you loop within this function while the next instruction is in the same group, and only return to the outer global instruction loop otherwise. If you design the bytecode carefully, you can probably do group checks with a simple bitmask.

There are no comments on this comment yet.