logoalt Hacker News

doogliustoday at 3:27 AM1 replyview on HN

Why not?


Replies

MBCooktoday at 4:18 AM

They don’t have to match.

As an example, what about a divide instruction. A machine without an FPU can emulate a machine that has one. It will legitimately have to run hundreds/thousands of instructions to emulate a single divide instruction, it will certainly take longer.

Thats OK, just means the emulation is slower doing that than something like add that the host has a native instruction for. In ‘emulator time’ you still only ran one instruction. That world is still consistent.

show 1 reply