3 ms·
If you doing your own Forth CPU, make a barrel one [1] to hide any overhead. State of such individual CPU is small, you can easily have thousands of them. [1]
by thesz 1y ago
If you doing your own Forth CPU, make a barrel one [1] to hide any overhead. State of such individual CPU is small, you can easily have thousands of them.
[1] https://en.wikipedia.org/wiki/Barrel_processor https://en.wikipedia.org/wiki/Barrel_processor
If you do your implementation on regular CPU, do a software pipelined [2] interpreter, which also can do several threads of execution simultaneously.
[2] https://en.wikipedia.org/wiki/Software_pipelining https://en.wikipedia.org/wiki/Software_pipelining
Software pipelined stack machine interpreter was used to compress code for VLIW DSP.