2 ms·
That's a great suggestion. I went one step lower and wrote a (perl-based) virtual-machine. As you suggested I did the bare minimum at first, for example when
by stevekemp 10y ago
That's a great suggestion. I went one step lower and wrote a (perl-based) virtual-machine. As you suggested I did the bare minimum at first, for example when I see labels I just remember their locations. Later on I patch up the offsets in the code, to make jumps to them point to the correct location.
The project seems reasonably popular, for reasons that I don't understand, but it is very simple:
https://github.com/skx/simple.vm https://github.com/skx/simple.vm