Re:German train company are looking for a Windows 3.11 Admin...
by rep_lodsb on Sunday January 28, 2024 @09:57PM
(#39172229)
I'm not familiar with what exactly Wine does to run 32-bit code under OS X, but it would already have to do emulation / binary translation. Because some opcodes have been repurposed for the REX prefix in 64-bit mode, and any absolute 32-bit address would be interpreted as relative to RIP instead.
And 16-bit would be completely impossible, first there's the default operand size and then the completely different encoding for memory addressing.
Wine 9.0 can likewise rethunk 32-bit applications to run in 64-bit mode, but this is only the default on Mac OS X (where Apple removed 32-bit support), because it still introduces more compatibility problems on Linux than just running 32-bit code natively. (And thunking Win16 to 64-bit mode is not yet done.)