This is an experimental project that modifies Apple's Rosetta technology to use less precise but significantly faster x87 instruction handlers.
- macOS 14 or later
- C compiler (clang)
- CMake
cmake -B build
cmake --build build
clang -v -arch x86_64 -mno-sse -mfpmath=387 ./sample/math.c -o ./build/math
Run the target program from the build folder:
./rosettax87 ./math
You will see a popup asking you to authorize debugging. Once approved, the process granted debug session. Reference: Debugging tool entitlement
Alternatively (Not Recommended), you can disable Debugging Restrictions part of System Integrity Protection (SIP) by running csrutil enable --without debug in macOS Recovery.
Warning: This reduces system security. NOT recommended.
You can use the brew wine@devel cask with RosettaHack x87. It supports launching Windows applications through Wine with an environment variable ROSETTA_X87_PATH.
- Install
wine@develusing Homebrew
brew install --cask wine@devel- To permanently set the environment variable, add the following to your
~/.bashrcor~/.zshrcfile:
export ROSETTA_X87_PATH=/Path/To/rosettax87- Run the Windows application
wine PATH_TO_BINARY.exeThis project is licensed under MIT.