[virtmach] Your VM
Wed, 30 May 2001 13:36:45 +0100
> apart from speed considerations, i recently came across a useful reason
> for implementing as an array of function pointers rather than a switch
> statement: the core execution loop is very small, so it's possible to
> have alternative execution loops for very little cost.
> the Inferno VM uses this to implement single-step/breakpoint debugging
> - a process being debugged uses an alternative core execution function;
> others use the usual one (which is only 22 lines of code).
The Beasts VM has 3 core loops, one each for "standard", "debug" and
Beasts Team, Creature Labs Ltd