2 ms·
x86 elf -> wasm could solve this problem.
by sitkack 9y ago
x86 elf -> wasm could solve this problem.
- kodablah 9y agoThat would take quite the effort to build, but I bet lifting to LLVM first might work: https://github.com/trailofbits/mcsema https://github.com/trailofbits/mcsema
- slrz 9y agoNo, 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 https://bellard.org/jslinux/tech.html
- sitkack 9y agoOk, pick a better ISA, like RISC-V.