box64 icon indicating copy to clipboard operation
box64 copied to clipboard

[BOX32] Feature request : support for x86_64 target

Open rtissera opened this issue 9 months ago • 4 comments

Hello, This might sounds silly in a first place, but what about having a x86_64 dynarec leveraging Box32 in order to run x86 (32-bit) applications on x86_64 targets ? Box64/32 allows to not bundle a full rootfs and this is a huge advantage in my opinion.

rtissera avatar Apr 02 '25 22:04 rtissera

Yeah, it would be interesting to do, but a full x86_64 backend is a big task, so don't count on it for now (unless someone else want to contribute it).

ptitSeb avatar Apr 03 '25 06:04 ptitSeb

I can guess reusing QEMU TCG or leveraging xbyak or similar libraries is not acceptable in the current scope of the project, right ?

Wrote a few dynarec engines in the past, but emitting x86_64 code, including SIMD code, is daunting.

rtissera avatar Apr 03 '25 06:04 rtissera

yeah, using another dynarec would not be accepted.

I guess the point here would be to create a path-through code, and run the original code directly instead of emulating it. That is still a complex task (but I guess a bit simpler then a full dynarec)

ptitSeb avatar Apr 03 '25 06:04 ptitSeb

Yes, I was thinking the same about passthrough approach too. Maybe wiring it through interpreter as a first step ?

rtissera avatar Apr 03 '25 08:04 rtissera