GitHub - ptitSeb/box64: Box64 - Linux Userspace x86_64 Emulator with a twist, ta...
source link: https://github.com/ptitSeb/box64
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
box64
Linux Userspace x86_64 Emulator with a twist
Box64 lets you run x86_64 Linux programs (such as games) on non-x86_64 Linux systems, like ARM (host system needs to be 64bit little-endian).
You can find many more Box64 video on Youtube in the MicroLinux, Pi Labs or The Byteman Channels
Because Box64 uses the native versions of some "system" libraries, like libc, libm, SDL, and OpenGL, it's easy to integrate and use with most applications, and performance can be surprisingly high in many cases. Take a look at thoses bench analysis for an example here.
Box64 integrates a DynaRec (dynamic recompiler) for the ARM64 platform, providing a speed boost between 5 to 10 times faster than only using the interpreter. Some high level information on how the Dynarec work can be found here.
Some x64 internal opcodes use parts of "Realmode X86 Emulator Library", see x64primop.c for copyright details
Logo and Icon made by @grayduck, thanks!
Usage
There are a few environment variables to control the behaviour of Box64.
See here for all environment variables and what they do.
Note: Box64's Dynarec uses a mechanism with Memory Protection and a SegFault signal handler to handle JIT code. In simpler terms, if you want to use GDB to debug a running program that use JIT'd code (like mono/Unity3D), you will still have many "normal" segfaults triggering. It is suggested to use something like handle SIGSEGV nostop
in GDB to not stop at each segfault, and maybe put a breakpoint inside my_memprotectionhandler
in signals.c
if you want to trap SegFaults.
Compiling/Installation
Compilation instructions can be found here
Version history
The change log is available here
Final words
(If you use Box64 in your project, please don't forget to mention Box64!)
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK