Hacker News new | ask | show | jobs
by sitkack 3035 days ago
x86 elf -> wasm could solve this problem.
2 comments

No, it wouldn't. At that point you already lost lots of information and your only option is to faithfully reproduce the behaviour of the x86 machine.

You can still do it, of course and performance isn't even that bad. See Fabrice Bellard's x86 emulator using asm.js.

https://bellard.org/jslinux/tech.html

Ok, pick a better ISA, like RISC-V.
That would take quite the effort to build, but I bet lifting to LLVM first might work: https://github.com/trailofbits/mcsema