logoalt Hacker News

ecnahc515 • today at 4:41 AM • 1 reply • view on HN

Not necessarily. It could just rewrite the outer portion to be an ELF loader that then calls into a runtime that actually shims the syscalls for example. I don't think WINE does exactly this but it's not really transpiling either.


Replies

yjftsjthsd-h • today at 7:11 AM

You don't even need that, really; just have wine load the PE binary into memory and hand it a bunch of DLLs that use Linux syscalls under the hood. It's less transpiler and more of a funky dynamic linker+loader plus libraries.