mirror of
https://github.com/HeyPuter/gex.git
synced 2026-11-13 20:12:43 -10:00
<gex/i386.h> and rt/i386.c: gex_i386_call runs i386 code from the program (cdecl or stdcall words, EDX:EAX or ST0), through gex's function table to a return pad, as native Wine's gexrt does; GEX_I386_ENTRY and gex_i386_bind let i386 code call the program back, its C running on the guest thread's stack below the guest's frames, nested to any depth. The link adds rt/i386.o and the container's flags (--guest-i386 --linux-space). install.sh builds the object against the gex_abi.h of an x86 gexc; without one the flag is refused at link time. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_c8c04c00da9a4525ab21b0b9f146c598