BOX64(1)

๐Ÿ“ฆ
version 0.3.6 ยท 2 versions
, in fedora 43

๐Ÿ’– box64(1) โ€” Linux Userspace x86_64 Emulator with a twist ๐Ÿ’–

okay bestie, sit DOWN, because this is the manual page for box64, from User Contributed Perl Documentation, section 1. It's giving "tiny emulator that could, and did, actually." No cap. ๐Ÿฆ‹


โœจ NAME โœจ

box64 โ€” Linux Userspace x86_64 Emulator with a twist ๐ŸŒˆ


๐ŸŒธ SYNOPSIS ๐ŸŒธ

box64 [--help] [--version] executable

๐Ÿ’… DESCRIPTION ๐Ÿ’…

So here's the tea. Box64 lets you run x86_64 Linux programs (yes, including games, the whole point ๐ŸŽฎ) on non-x86_64 Linux systems, like ARM โ€” and heads up, the host system needs to be 64-bit little-endian. That's the vibe check. โœ…

Since Box64 uses the native versions of some "system" libraries โ€” like libc, libm, SDL, and OpenGL โ€” it's genuinely easy to integrate and use with most applications, and performance can be surprisingly high in many cases. Like, actually. Not me hyping it up for no reason. ๐Ÿ”ฅ

And THEN. Box64 integrates with DynaRec (that's the dynamic recompiler, iykyk) for the ARM64 platform, which gives a speed boost of between 5 to 10 times faster than using only the interpreter. Five. To. Ten. Times. Periodt. ๐Ÿ‘‘


โœจ OPTIONS โœจ

Short section, iconic behavior, we love a minimalist. ๐Ÿ’–

  • -h, --help โ€” Prints the box64 help and then dips out. โœŒ๏ธ
  • -v, --version โ€” Prints the box64 version and then dips out. โœŒ๏ธ

๐ŸŽ€ BRIEF USAGE ๐ŸŽ€

okay so there are many environment variables controlling how Box64 behaves โ€” like, a LOT, we're getting to them, breathe โ€” and on top of that, Box64 also looks in 2 places for an rcfile:

  • /etc/box64.box64rc
  • ~/.box64rc

Both in the format of .ini files. ๐Ÿ“

And the settings priority goes like this:

  1. ~/.box64rc (highest โ€” your personal one wins, main character energy)
  2. /etc/box64.box64rc
  3. environment variables (lowest)

Example, because we're visual learners bestie:

[factorio]
BOX64_DYNAREC_SAFEFLAGS=0
BOX64_DYNAREC_BIGBLOCK=2
BOX64_DYNAREC_FORWARD=1024
BOX64_DYNAREC_CALLRET=1

๐Ÿฆ‹ ENVIRONMENT VARIABLES ๐Ÿฆ‹

Okay this is the big one. Grab a snack. We're going in. ๐Ÿ“

BOX64_ADDLIBS = XXXX|XXXX:YYYY:ZZZZ

Add extras to the needed libraries list. Rarely needed, so don't stress unless something's being weird.

  • XXXX : Add library XXXX to the needed libraries list.
  • XXXX:YYYY:ZZZZ : Add library XXXX, YYYY and ZZZZ to the needed libraries list.

BOX64_ALLOWMISSINGLIBS = 0|1

Allow missing libraries to just be ignored. Rude to the libraries, but okay. ๐Ÿ™ˆ

  • 0 : Do not allow missing libraries. [Default]
  • 1 : Allow missing libraries.

BOX64_ARGS = XXXX|XXXX YYYY ZZZZ

Arguments to pass to the guest program โ€” only valid if there are no existing arguments, so it can't just butt in whenever.

  • XXXX : Pass argument XXXX to the program.
  • XXXX YYYY ZZZZ : Pass arguments XXXX, YYYY and ZZZZ to the guest program.

BOX64_AVX = 0|1|2

Expose AVX extension to CPUID and the cpuinfo file. Default value is 2 on Arm64 because it's fully implemented in DynaRec, and 0 otherwise. Available in WowBox64.

  • 0 : Do not expose AVX capabilities.
  • 1 : Expose AVX, BMI1, F16C and VAES extensions to CPUID and cpuinfo file.
  • 2 : All in 1, plus AVX2, BMI2, FMA, ADX, VPCLMULQDQ and RDRAND extensions.

BOX64_BASH = XXXX

Path to the bash executable. ๐Ÿš

  • XXXX : Use bash executable at path XXXX.

BOX64_CEFDISABLEGPU = 0|1

Add -cef-disable-gpu argument to the guest program.

  • 0 : Does nothing. [Default]
  • 1 : Add -cef-disable-gpu argument to the guest program.

BOX64_CEFDISABLEGPUCOMPOSITOR = 0|1

Add -cef-disable-gpu-compositor argument to the guest program.

  • 0 : Does nothing. [Default]
  • 1 : Add -cef-disable-gpu-compositor argument to the guest program.

BOX64_CPUTYPE = 0|1

Specify the CPU type to emulate. Available in WowBox64.

  • 0 : Emulate an Intel CPU Model. [Default]
  • 1 : Emulate an AMD CPU Model.

BOX64_CRASHHANDLER = 0|1

Use a dummy crash handler or not. Dummy handler my beloved.

  • 0 : Use emulated crashhandler.so library if needed.
  • 1 : Use an internal dummy (empty) crashhandler.so library. [Default]

BOX64_DLSYM_ERROR = 0|1

Enable or disable the logging of dlsym errors.

  • 0 : Disable the logging of dlsym errors. [Default]
  • 1 : Enable the logging of dlsym errors.

BOX64_DUMP = 0|1

Dump elfloader debug information. Available in WowBox64.

  • 0 : Do not dump elfloader debug information. [Default]
  • 1 : Dump elfloader debug information.

BOX64_DYNAREC = 0|1

Enable/disable the Dynamic Recompiler (a.k.a DynaRec). This option defaults to 1 if it's enabled in the build options for a supported architecture. Available in WowBox64.

  • 0 : Disable DynaRec.
  • 1 : Enable DynaRec.

BOX64_DYNAREC_ALIGNED_ATOMICS = 0|1

Generate aligned atomics only (only available on Arm64 for now). Available in WowBox64.

  • 0 : Generate unaligned atomics handling code. [Default]
  • 1 : Generate aligned atomics only, which is faster and smaller code size, but will cause SIGBUS for LOCK prefixed opcodes operating on aligned data addresses. ๐Ÿ’€
careful bestie โ€” option 1 is faster and smaller, but that SIGBUS is not a drill.

BOX64_DYNAREC_BIGBLOCK = 0|1|2|3

Enable building bigger DynaRec code blocks for better performance. Available in WowBox64.

  • 0 : Do not try to build block as big as possible, suitable for programs using lots of threads and JIT, like Unity.
  • 1 : Build Dynarec block as big as possible.
  • 2 : Build Dynarec block bigger, do not stop when block overlaps, but only for blocks in elf memory. [Default]
  • 3 : Build Dynarec block bigger, do not stop when block overlaps, for all type of memory, useful for wine programs.

BOX64_DYNAREC_BLEEDING_EDGE = 0|1

Detect MonoBleedingEdge and apply conservative settings. Yes, that's really what it's called.

  • 0 : Do not detect MonoBleedingEdge.
  • 1 : Detect MonoBleedingEdge and apply BOX64_DYNAREC_BIGBLOCK=0 BOX64_DYNAREC_STRONGMEM=1 when detected. [Default]

BOX64_DYNAREC_CALLRET = 0|1|2

Optimize CALL/RET opcodes. Available in WowBox64.

  • 0 : Do not optimize CALL/RET, use jump table. [Default]
  • 1 : Try to optimize CALL/RET, skipping the jump table when possible.
  • 2 : Try to optimize CALL/RET, skipping the jump table when possible, adding code to handle return to dirty/modified block. Does not work on WowBox64.

BOX64_DYNAREC_DF = 0|1

Enable or disable the use of deferred flags. Available in WowBox64.

  • 0 : Disable the use of deferred flags.
  • 1 : Enable the use of deferred flags. [Default]

BOX64_DYNAREC_DIRTY = 0|1|2

Allow continuing to run a block that is unprotected and potentially dirty. Living dangerously, respectfully.

  • 0 : Do not allow continue running a block that is unprotected and potentially dirty. [Default]
  • 1 : Allow continue to run a dynablock that write data in the same page as code. It can gets faster in loading time of some game but can also get unexpected crashes.
  • 2 : Will also, when it detect an HotPage, flag that page as NEVERCLEAN, and so it will not be write protected but Block build from that page will always be tested. It can be faster that way (but some SMC case might not be trapped).

BOX64_DYNAREC_DIV0 = 0|1

Enable or disable the generation of division-by-zero exception. Available in WowBox64.

  • 0 : Do not generate the division-by-zero exception. [Default]
  • 1 : Generate the division-by-zero exception.

BOX64_DYNAREC_DUMP = 0|1|2

Enable DynaRec dump. Available in WowBox64.

  • 0 : Do not dump DynaRec blocks. [Default]
  • 1 : Dump DynaRec blocks.
  • 2 : Dump DynaRec blocks with some colors. ๐ŸŒˆ

BOX64_DYNAREC_DUMP_RANGE = 0xXXXXXXXX-0xYYYYYYYY

Dump DynaRec blocks in the specified range. Available in WowBox64.

  • 0xXXXXXXXX-0xYYYYYYYY : Define the range where dynablock gets dumped (inclusive-exclusive).

BOX64_DYNAREC_FASTNAN = 0|1

Enable or disable fast NaN handling. Available in WowBox64.

  • 0 : Precisely emulate the -NaN generation like on x86.
  • 1 : Do not do anything special with -NAN generation, faster. [Default]

BOX64_DYNAREC_FASTROUND = 0|1|2

Enable or disable fast rounding. Available in WowBox64.

  • 0 : Generate float/double -> int rounding and use current rounding mode for float/double computation like on x86.
  • 1 : Do not do anything special with edge case rounding, faster. [Default]
  • 2 : Generate float/double -> int rounding using current rounding mode for float/double computation like on x86, but use fast int -> float/double conversion.

BOX64_DYNAREC_FORWARD = 0|128|XXXX

Define max allowed forward value when building block. Available in WowBox64.

  • 0 : No forward value. When current block ends, do not try to go further even if there are previous forward jumps.
  • 128 : Allow up to 128 bytes of gap between end of the block and the next forward jump. [Default]
  • XXXX : Allow up to XXXX bytes of gap between end of the block and the next forward jump.

BOX64_DYNAREC_GDBJIT = 0|1|2|3|0xXXXXXXX-0xYYYYYYY

The GDBJIT debugging support, only available on a build with -DGDBJIT=ON, enable it with the gdb command: jit-reader-load /usr/local/lib/libbox64gdbjitreader.so.

  • 0 : Dynarec will not generate GDBJIT debuginfo. [Default]
  • 1 : Dynarec will generate GDBJIT debuginfo.
  • 2 : Dynarec will generate detailed GDBJIT debuginfo with internal state.
  • 3 : Dynarec will register detailed GDBJIT debuginfo only for dynablocks that the guest program trap into, greatly improving performance.
  • 0xXXXXXXX-0xYYYYYYY : Define the range where Dynarec will generate detailed GDBJIT debuginfo with internal state.

BOX64_DYNAREC_LOG = 0|1|2|3

Disable or enable DynaRec logs. Available in WowBox64.

  • 0 : Disable DynaRec logs. [Default]
  • 1 : Enable minimal DynaRec logs.
  • 2 : Enable debug level DynaRec logs.
  • 3 : Enable verbose level DynaRec logs.

BOX64_DYNAREC_MISSING = 0|1|2

Print missing opcodes. Available in WowBox64.

  • 0 : Do not print the missing opcode. [Default]
  • 1 : Print missing opcodes.
  • 2 : Print the fallback to scalar opcodes, only valid on RISC-V.

BOX64_DYNAREC_NATIVEFLAGS = 0|1

Enable or disable the use of native flags. Available in WowBox64.

  • 0 : Do not use native flags.
  • 1 : Use native flags when possible. [Default]

BOX64_DYNAREC_PAUSE = 0|1|2|3

Enable x86 PAUSE emulation, may help the performance of spinlocks. Available in WowBox64.

  • 0 : Ignore x86 PAUSE instruction. [Default]
  • 1 : Use YIELD to emulate x86 PAUSE instruction.
  • 2 : Use WFI to emulate x86 PAUSE instruction.
  • 3 : Use SEVL+WFE to emulate x86 PAUSE instruction.

BOX64_DYNAREC_PERFMAP = 0|1

Generate map file for the Linux perf tool.

  • 0 : Dynarec will not generate perf map. [Default]
  • 1 : Dynarec will generate perf map.

BOX64_DYNAREC_SAFEFLAGS = 0|1|2

Behaviour of flags emulation on CALL/RET opcodes. Available in WowBox64.

  • 0 : Treat CALL/RET as if it never needs any flags.
  • 1 : Most of RETs will need flags, most of CALLs will not. [Default]
  • 2 : All CALL/RET will need flags.

๐ŸŒธ BOX64_DYNAREC_STRONGMEM = 0|1|2|3

okay so this one turns on the emulation of the x86 strong memory model ๐Ÿ’ช available in WowBox64.

  • 0 โ€” don't try anything special. [Default]
  • 1 โ€” enable some memory barriers when writing to memory, so we emulate the x86 strong memory model in a limited way.
  • 2 โ€” everything in 1, plus memory barriers on SIMD instructions.
  • 3 โ€” everything in 2, plus more memory barriers on a regular basis.

๐ŸŒˆ BOX64_DYNAREC_TBB = 0|1

enable or disable libtbb detection.

  • 0 โ€” do not detect libtbb.
  • 1 โ€” detect libtbb and apply conservative settings. [Default]

๐ŸŽ€ BOX64_DYNAREC_TEST = 0|1|0xXXXXXXXX-0xYYYYYYYY

enable DynaRec execution comparison with the interpreter. bestie, this is so slow, like genuinely painful, only for testing. available in WowBox64.

  • 0 โ€” no comparison. [Default]
  • 1 โ€” each opcode runs on interpreter and on Dynarec, regs and memory are compared and printed when they differ.
  • 0xXXXXXXXX-0xYYYYYYYY โ€” define the range where dynarec is tested (inclusive-exclusive).

๐Ÿ’… BOX64_DYNAREC_TRACE = 0|1

enable or disable DynaRec trace.

  • 0 โ€” do not trace DynaRec blocks. [Default]
  • 1 โ€” trace DynaRec blocks, will slow down the program a lot and generates huge logs.
โš ๏ธ that 1 is not a vibe, it's a warning. huge logs. HUGE.

โœจ BOX64_DYNAREC_VOLATILE_METADATA = 0|1

use volatile metadata parsed from PE files, only valid for 64bit Windows games.

  • 0 โ€” do not use volatile metadata.
  • 1 โ€” use volatile metadata, which will guide Box64 for better strong memory emulation. [Default]

๐Ÿฆ‹ BOX64_DYNAREC_WAIT = 0|1

wait or not for the building of a DynaRec code block to be ready. available in WowBox64.

  • 0 โ€” do not wait and use interpreter instead, might speedup a bit on massive multithread or JIT programs.
  • 1 โ€” wait for a DynaRec code block to be ready. [Default]

๐Ÿ“ BOX64_DYNAREC_WEAKBARRIER = 0|1|2

tweak the memory barriers to reduce the performance impact by strong memory emulation. available in WowBox64.

  • 0 โ€” use regular safe barrier.
  • 1 โ€” use weak barriers to have more performance boost. [Default]
  • 2 โ€” everything in 1, plus disabled the last write barriers.

๐Ÿ’œ BOX64_DYNAREC_X87DOUBLE = 0|1|2

force the use of float/double for x87 emulation. available in WowBox64.

  • 0 โ€” try to use float when possible for x87 emulation. [Default]
  • 1 โ€” only use Double for x87 emulation.
  • 2 โ€” check Precision Control low precision on x87 emulation.

๐Ÿงš BOX64_EMULATED_LIBS = XXXX|XXXX:YYYY:ZZZZ

force the use of emulated libraries. no cap, just tell it which ones.

  • XXXX โ€” force the use of emulated library XXXX.
  • XXXX:YYYY:ZZZZ โ€” force the use of emulated libraries XXXX, YYYY and ZZZZ.

๐ŸŽ€ BOX64_ENV = XXXX=yyyy

add an environment variable. yes, from inside Box64 itself, iconic.

  • XXXX=yyyy โ€” add environment variable XXXX with value yyyy.

๐ŸŒธ BOX64_ENV[1-5] = XXXX=yyyy

add an environment variable. same energy, just more slots.

  • XXXX=yyyy โ€” add environment variable XXXX with value yyyy.

๐Ÿ’€ BOX64_EXIT = 0|1

just exit, do not try to run the program. it's giving "i'm out" ๐Ÿ’…

  • 0 โ€” does nothing. [Default]
  • 1 โ€” just exit.

๐Ÿฆ‹ BOX64_FIX_64BIT_INODES = 0|1

fix 64bit inodes.

  • 0 โ€” do not fix 64bit inodes. [Default]
  • 1 โ€” fix 64bit inodes.

โญ BOX64_IGNOREINT3 = 0|1

ignore INT3 instructions.

  • 0 โ€” trigger a TRAP signal if a handler is present. [Default]
  • 1 โ€” skip the opcode silently.

๐ŸŒˆ BOX64_INSERT_ARGS = XXXX|XXXX YYYY ZZZZ

prepend arguments to the command line.

  • XXXX โ€” prepend argument XXXX to the program.
  • XXXX YYYY ZZZZ โ€” prepend arguments XXXX, YYYY and ZZZZ to the guest program.

๐Ÿ‘‘ BOX64_INPROCESSGPU = 0|1

add --in-process-gpu argument to the guest program.

  • 0 โ€” does nothing. [Default]
  • 1 โ€” add --in-process-gpu argument to the guest program.

๐Ÿซถ BOX64_JITGDB = 0|1|2|3

launch gdb or not for SIGSEGV, SIGILL, and SIGBUS. this is the debugger bestie, buckle up ๐Ÿ”ฅ

  • 0 โ€” just print the message when the signal is caught. [Default]
  • 1 โ€” launch gdb when a SIGSEGV, SIGILL or SIGBUS signal is trapped, attached to the offending process and go in an endless loop, waiting. Inside gdb, you need to find the correct thread yourself (the one with my_box64signalhandler in its stack), then probably need to finish 1 or 2 functions (inside usleep(..)) and then you'll be in my_box64signalhandler, just before the printf of the Segfault message. Then set waiting=0 to exit the infinite loop.
  • 2 โ€” launch gdbserver when a SIGSEGV, SIGILL or SIGBUS signal is trapped, attached to the offending process, and go in an endless loop, waiting. Use gdb /PATH/TO/box64 and then target remote 127.0.0.1: 1234 to connect to the gdbserver (or use actual IP if not on the machine). After that, the procedure is the same as with BOX64_JITGDB=1.
  • 3 โ€” launch lldb when a SIGSEGV, SIGILL or SIGBUS signal is trapped, attached to the offending process and go in an endless loop, waiting.

๐Ÿ’– BOX64_JVM = 0|1

detect libjvm and apply conservative settings.

  • 0 โ€” does nothing.
  • 1 โ€” detect libjvm, and apply BOX64_DYNAREC_BIGBLOCK=0 BOX64_DYNAREC_STRONGMEM=1 BOX64_SSE42=0 when detected. [Default]

๐Ÿ“ BOX64_LD_LIBRARY_PATH = XXXX

path to look for x86_64 libraries.

  • XXXX โ€” add path XXXX to the library path.

๐Ÿงš BOX64_LD_PRELOAD = XXXX|XXXX:YYYY

force loading libraries with the binary.

  • XXXX โ€” force the loading of library XXXX.
  • XXXX:YYYY โ€” force the loading of libraries XXXX and YYYY.

๐Ÿ’… BOX64_LIBCEF = 0|1

detect libcef and apply BOX64_MALLOC_HACK settings.

  • 0 โ€” does nothing.
  • 1 โ€” detect libcef, and apply BOX64_MALLOC_HACK=2 if detected. [Default]

โœจ BOX64_LIBGL = libXXXX|/path/to/libXXXX

set the name for libGL.

  • libXXXX โ€” set the name for libGL to libXXXX.
  • /path/to/libXXXX โ€” set the name and path for libGL to /path/to/libXXXX, you can also use SDL_VIDEO_GL_DRIVER.

๐ŸŒธ BOX64_LOAD_ADDR = 0xXXXXXXXX

set the address where the program is loaded, only active for PIE guest programs.

  • 0xXXXXXXXX โ€” set the address where the program is loaded.

๐Ÿ”ฅ BOX64_LOG = 0|1|2|3

enable or disable Box64 logs, default value is 0 if stdout is not terminal, 1 otherwise. available in WowBox64.

  • 0 โ€” disable Box64 logs.
  • 1 โ€” enable minimal Box64 logs.
  • 2 โ€” enable debug level Box64 logs.
  • 3 โ€” enable verbose level Box64 logs.

๐Ÿ’œ BOX64_MALLOC_HACK = 0|1|2

behaviour when hooking malloc operators.

  • 0 โ€” don't allow malloc operator to be redirected, rewriting code to use regular function. [Default]
  • 1 โ€” allow malloc operator to be redirected.
  • 2 โ€” like 0, but track special mmap/free (some redirected functions are inlined and cannot be redirected).

๐Ÿฆ‹ BOX64_MAXCPU = 0|XXXX

maximum CPU cores exposed. available in WowBox64.

  • 0 โ€” use the actual number of CPU cores. [Default]
  • XXXX โ€” use XXXX CPU cores.

โญ BOX64_MMAP32 = 0|1

force 32-bit compatible memory mappings on 64-bit programs that run 32-bit code (like Wine WOW64), can improve performance.

  • 0 โ€” do not force 32-bit memory mappings.
  • 1 โ€” force 32-bit memory mappings. [Default]

๐ŸŽ€ BOX64_NOBANNER = 0|1

disable the Box64 banner. available in WowBox64.

  • 0 โ€” show the Box64 banner.
  • 1 โ€” do not show the Box64 banner.

๐ŸŒˆ BOX64_NODYNAREC = 0xXXXXXXXX-0xYYYYYYYY

forbid dynablock creation in the address range specified, helpful for debugging behaviour difference between Dynarec and Interpreter. available in WowBox64.

  • 0xXXXXXXXX-0xYYYYYYYY โ€” define the range where dynablock creation is forbidden (inclusive-exclusive).

๐Ÿซถ BOX64_NOGTK = 0|1

do not load wrapped GTK libraries.

  • 0 โ€” load wrapped GTK libraries. [Default]
  • 1 โ€” do not load wrapped GTK libraries.

๐Ÿ“ BOX64_NOPULSE = 0|1

do not load PulseAudio libraries (both native and x86_64).

  • 0 โ€” load PulseAudio libraries. [Default]
  • 1 โ€” do not load PulseAudio libraries.

๐Ÿงš BOX64_NORCFILES = 0|1

do not load any rc files.

  • 0 โ€” load rc files. [Default]
  • 1 โ€” do not load any rc files.

๐Ÿ‘‘ BOX64_NOSANDBOX = 0|1

add --no-sandbox argument to the guest program.

  • 0 โ€” does nothing. [Default]
  • 1 โ€” add --no-sandbox argument to the guest program.

๐Ÿ’€ BOX64_NOSIGSEGV = 0|1

disable the handling of SIGSEGV.

  • 0 โ€” let the x86 program set sighandler for SIGSEGV. [Default]
  • 1 โ€” disable the handling of SIGSEGV.

๐Ÿ’€ BOX64_NOSIGILL = 0|1

disable the handling of SIGILL.

  • 0 โ€” let the x86 program set sighandler for SIGILL. [Default]
  • 1 โ€” disable the handling of SIGILL.

๐Ÿ”ฅ BOX64_NOVULKAN = 0|1

do not load Vulkan libraries.

  • 0 โ€” load Vulkan libraries. [Default]
  • 1 โ€” do not load Vulkan libraries, both native and x86_64.

๐Ÿ’– BOX64_PATH = XXXX

path to look for x86_64 binaries.

  • XXXX โ€” add path XXXX to the binary path.

๐ŸŒธ BOX64_PREFER_EMULATED = 0|1

prefer emulated libraries over native ones.

  • 0 โ€” prefer native libraries over emulated ones. [Default]
  • 1 โ€” prefer emulated libraries over native ones.

โœจ BOX64_PREFER_WRAPPED = 0|1

prefer wrapped libs first even if the lib is specified with absolute path.

  • 0 โ€” prefer libs with absolute path over wrapped ones. [Default]
  • 1 โ€” prefer wrapped libs first even if the lib is specified with absolute path.

๐ŸŽ€ BOX64_RCFILE = XXXX

path to the rc file to load.

  • XXXX โ€” load the rc file XXXX, default rc files will not be loaded.

โญ BOX64_RDTSC_1GHZ = 0|1

use hardware counter for rdtsc if available.

  • 0 โ€” use hardware counter for rdtsc opcode if available. [Default]
  • 1 โ€” use hardware counter for rdtsc if and only if precision is at least 1GHz.

๐Ÿฆ‹ BOX64_RESERVE_HIGH = 0|1

reserve high memory area for the program, always enabled on Box32.

  • 0 โ€” do not reserve high memory area for the program. [Default]
  • 1 โ€” reserve high memory area for the program.

๐Ÿ’… BOX64_ROLLING_LOG = 0|1|XXXX

show last few wrapped function call when a signal is caught.

  • 0 โ€” does nothing. [Default]
  • 1 โ€” show last 16 wrapped function call when a signal is caught.
  • XXXX โ€” show last XXXX wrapped function call when a signal is caught.
  • BOX64_SDL2_JGUID = 0|1 โ€” bestie, this one applies a lil workaround for the SDL_GetJoystickGUIDInfo function when you're dealing with a wrapped SDL2. ๐ŸŽฎ
    • 0 โ€” Does nothing. [Default]
    • 1 โ€” Use a workaround for SDL_GetJoystickGUIDInfo function for wrapped SDL2.
  • BOX64_SHAEXT = 0|1 โ€” exposes SHAEXT (a.k.a. SHA_NI) capabilities. Like, do we let the app see them or not.
    • 0 โ€” Do not expose SHAEXT capabilities.
    • 1 โ€” Expose SHAEXT capabilities. [Default]
  • BOX64_SHOWBT = 0|1 โ€” show native and emulated backtrace when a signal is caught. chef's kiss for debugging. ๐Ÿ”ฅ
    • 0 โ€” Does nothing. [Default]
    • 1 โ€” Show native and emulated backtrace when a signal is caught.
  • BOX64_SHOWSEGV = 0|1 โ€” always show SIGSEGV signal details. no more mystery segfaults, we're nosy now.
    • 0 โ€” Does nothing. [Default]
    • 1 โ€” Always show SIGSEGV signal details.
  • BOX64_SSE_FLUSHTO0 = 0|1 โ€” controls the behaviour of SSE Flush to 0 flags. Available in WowBox64. ๐ŸŒ€
    • 0 โ€” Just track the flag. [Default]
    • 1 โ€” Apply SSE Flush to 0 flag directly.
  • BOX64_SSE42 = 0|1 โ€” expose SSE4.2 capabilities. Available in WowBox64.
    • 0 โ€” Do not expose SSE4.2 capabilities.
    • 1 โ€” Expose SSE4.2 capabilities. [Default]
  • BOX64_SYNC_ROUNDING = 0|1 โ€” synchronize rounding mode between x86 and native. math girlies stay winning. ๐Ÿงฎโœจ
    • 0 โ€” Do not synchronize rounding mode. [Default]
    • 1 โ€” Synchronize rounding mode between x86 and native.
  • BOX64_TRACE_COLOR = 0|1 โ€” turn colored trace output on or off. aesthetics matter even in a register dump. ๐ŸŒˆ
    • 0 โ€” Disable colored trace output. [Default]
    • 1 โ€” Enable colored trace output.
  • BOX64_TRACE_EMM = 0|1 โ€” enable or disable EMM (i.e. MMX) trace output.
    • 0 โ€” Disable EMM trace output. [Default]
    • 1 โ€” Enable EMM trace output.
  • BOX64_TRACE_FILE = XXXX|XXXX%pid|stderr โ€” send all log and trace to a file instead of stdout. so your terminal can breathe. ๐Ÿ’…
    • XXXX โ€” Send all log and trace to file XXXX.
    • XXXX%pid โ€” Send all log and trace to file XXXX with pid appended.
    • stderr โ€” Send all log and trace to stderr.
  • BOX64_TRACE_INIT = 0|1 โ€” same as BOX64_TRACE but it starts the trace immediately.
    • 0 โ€” Disable trace output. [Default]
    • 1 โ€” Enable trace output. Trace starts before the initialization of dependencies.
  • BOX64_TRACE_START = 0|1|XXXX โ€” start trace after N opcodes executed.
    • 0 โ€” Start trace immediately. [Default]
    • 1 โ€” Start trace after 1 opcode executed.
    • XXXX โ€” Start trace after XXXX opcodes executed.
  • BOX64_TRACE_XMM = 0|1 โ€” enable or disable XMM (i.e. SSE) trace output.
    • 0 โ€” Disable XMM trace output. [Default]
    • 1 โ€” Enable XMM trace output.
  • BOX64_TRACE = 0|1|symbolname|0xXXXXXXX-0xYYYYYYY โ€” only available on a box64 build with trace. adds a trace of every single instruction executed, plus a register dump. it's giving surveillance era. ๐Ÿ‘€
    • 0 โ€” Disable trace output. [Default]
    • 1 โ€” Enable trace output.
    • symbolname โ€” Enable trace output for symbolname only.
    • 0xXXXXXXX-0xYYYYYYY โ€” Enable trace output for the range of address (inclusive-exclusive).
  • BOX64_UNITYPLAYER = 0|1 โ€” detect UnityPlayer and apply conservative settings. we're being gentle with it, ok?
    • 0 โ€” Does nothing.
    • 1 โ€” Detect UnityPlayer, and apply BOX64_DYNAREC_STRONGMEM=1 when detected. [Default]
  • BOX64_WRAP_EGL = 0|1 โ€” prefer wrapped libs for EGL and GLESv2.
    • 0 โ€” Prefer emulated libs for EGL and GLESv2. [Default]
    • 1 โ€” Prefer wrapped libs for EGL and GLESv2.
  • BOX64_X11GLX = 0|1 โ€” force the Xorg GLX extension to be present. main character energy for your GLX. ๐Ÿ‘‘
    • 0 โ€” Do not force Xorg GLX extension to be present. [Default]
    • 1 โ€” Require Xorg GLX extension when using XQueryExtension.
  • BOX64_X11SYNC = 0|1 โ€” force synchronized operation on the X11 display.
    • 0 โ€” Do not force synchronized operation on X11 display. [Default]
    • 1 โ€” Force synchronized operation on X11 display.
  • BOX64_X11THREADS = 0|1 โ€” call XInitThreads when loading X11. this is mostly for old Loki games paired with the Loki_Compat library. vintage, lowkey iconic. ๐ŸŽ€
    • 0 โ€” Do not call XInitThreads. [Default]
    • 1 โ€” Call XInitThreads as soon as libX11 is loaded.
  • BOX64_X87_NO80BITS = 0|1 โ€” the behaviour of x87 80bits long double. Available in WowBox64.
    • 0 โ€” Try to handle 80bits long double as precise as possible. [Default]
    • 1 โ€” Use 64bits double for x87.

and that's the whole page, bestie!! ๐Ÿซถ you just read an entire manpage, periodt. this little masterpiece came out of perl v5.42.0, dated 2025-08-06, and it lives in section 1 as BOX64(1) โ€” go forth and emulate something slay โœจ๐Ÿ’–

๐Ÿ“ฆ where this page comes from