Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

 
 

Latest commit

 

History

66 Commits

Folders and files

Repository files navigation

RosettaHack x87

Overview

This is an experimental project that modifies Apple's Rosetta technology to use less precise but significantly faster x87 instruction handlers.

⚠️ Warning: This is not ready for end-users. Use at your own risk.

Prerequisites

  • macOS 14 or later
  • C compiler (clang)
  • CMake

Building

Main Project

cmake -B build
cmake --build build

Sample Test Program

clang -v -arch x86_64 -mno-sse -mfpmath=387 ./sample/math.c -o ./build/math

Running

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.

Technical Details

Windows Applications Through Wine

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.

  1. Install wine@devel using Homebrew
brew install --cask wine@devel
  1. To permanently set the environment variable, add the following to your ~/.bashrc or ~/.zshrc file:
export ROSETTA_X87_PATH=/Path/To/rosettax87
  1. Run the Windows application
wine PATH_TO_BINARY.exe

License

This project is licensed under MIT.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages