Drydock
Static recompilation toolchain for the Sega Saturn, providing cycle-exact native SH-2 code execution on top of the Ymir emulator.
0 projects
About Drydock
Drydock is a static recompilation toolchain designed for the Sega Saturn. It translates SH-2 machine code from original game discs into native C++ code, which is then compiled into PC-native libraries. This approach, similar to N64Recomp, allows Saturn titles to run with high performance while maintaining cycle-exact timing verified against the Ymir emulator's interpreter. The system operates using a "shipyard" and "ship" model. Drydock itself serves as the generic toolchain and runtime, while a "ship" refers to a specific title's configuration, including its memory load addresses and SHA-256 hashes. The toolchain includes `sh2recomp` for static function discovery and translation, and a `drydock` build tool that verifies player-provided discs against recipes to generate native DLLs. To ensure accuracy, it utilizes a differential fuzzer to compare registers and memory states between native and interpreted execution paths.
Summarised from the official page linked above.