Jor1k – OpenRISC 1000 Platform Emulator in JS, Launches Linux with X or Wayland
github.com
github.com
The other part is the optimization of the emulator. The rules of normal programming don't apply here. In fact the difficult question is how to keep the javascript engine thinking that all variables are integers and not doubles.
On Chrome I get about 30 MIPS while running scummvm. On Firefox I get about 6 MIPS on the standard core and about 40 MIPS on the asm.js core.
I must say that I am impressed by Chrome performance on the standard core. However, sometime Chrome drops to about 6 MIPS for no discernible reason.
For people like me, who didn't know what OpenRISC is: http://en.wikipedia.org/wiki/OpenRISC
cat /dev/urandom > /dev/sda