<p><span class="h-card" translate="no"><a href="https://mastodon.social/@unspeaker" class="u-url mention">@<span>unspeaker</span></a></span> <span class="h-card" translate="no"><a href="https://mastodon.social/@mcc" class="u-url mention">@<span>mcc</span></a></span> <span class="h-card" translate="no"><a href="https://mastodon.social/@whitequark" class="u-url mention">@<span>whitequark</span></a></span> so WoW64 works by setting up a 32-bit code segment in the process during the 64-bit process's startup. the 32-bit system DLLs contain "thunks" that call into the real 64-bit system after marshalling arguments and returns across the different platform conventions.</p><p>it can do this on x86-64 CPUs because the hardware supports both the 32-bit and 64-bit instruction sets in one process. but one platform or the other could also be emulated using similar techniques</p>