Skip to content

Comment on Ask HN: Why can't we replace instructions in a binary for different ISAs?parent

Comments

Does the race condition happen during the translation or execution? If it's former, we can somehow prevent it, right? The translation code is known.

During execution.

Qemu is the result of a huge amount of effort to make it fast. It'd take many, many programmer-years to build something faster.

monusOP

The thing I don't quite grasp is that QEMU does the translation in runtime, i.e. emulation, but why not do it once and use the translated binary?

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.