4 ms·
> My proof of context reached more than 1 billion emulated machine instructions per second. Which are the calculations about the billion instructions per secon
by pizza234 4y ago
> My proof of context reached more than 1 billion emulated machine instructions per second.
Which are the calculations about the billion instructions per second? Emulating instructions, even on a relatively simple system, requires a lot of support: decoding, cpu state, memory access/mapping, buses - and this doesn't even include the instructions themselves.
- s-macke 4y agoThe calculations is based on the machine instructions, the compiled code by the JIT is able to perform on average. In this case a simple 32-Bit machine with OpenRISC architecture. For the proof of concept, that was the compiled code in [1]. Just look for code snipplets such as "cycles = cyles - xxxx|0", that does the calculation during runtime. So, my calculation does not include decoding, but CPU state, memory access/mapping, buses. [1] https://gist.github.com/s-macke/0d79d2ba78a022269cb7859a44174015 https://gist.github.com/s-macke/0d79d2ba78a022269cb7859a4417...