# Sonic the Hedgehog: a Master System Z80 static recompilation

> SonicTheHedgehogSMSRecomp translates the Sega Master System Sonic the Hedgehog Z80 program ahead of time into native C with smsggrecomp. Its game configuration records ROM identity and control-flow data, while the runtime models video, sound, ports, and the mapper; unresolved computed jumps can use a Z80 interpreter.

- Type: Case study
- Targets: Game
- Category: Independent reconstruction cases
- Relationship: Independent reconstruction project
- Sources reviewed: 2026-11-06
- Added to the catalog: 2026-11-09
- Original resource: <https://github.com/mstan/SonicTheHedgehogSMSRecomp>
- Primary source: <https://github.com/mstan/SonicTheHedgehogSMSRecomp/blob/14958b4c06c83bbdb2a1ce097f34306b4dc1e925/README.md>
- Catalog page: <https://awesomerea.org/resources/sonic-the-hedgehog-sms-recomp-case/>
- Record JSON: <https://awesomerea.org/resources/sonic-the-hedgehog-sms-recomp-case/record.json>
- Chinese version: [简体中文](https://awesomerea.org/zh/resources/sonic-the-hedgehog-sms-recomp-case/index.md)

## Requirements & limits

- **Prerequisites:** Supply your own legally dumped Sonic the Hedgehog Master System ROM matching CRC32 B519E833.
- **Prerequisites:** The documented source build uses Windows CMake, Ninja, GCC, and SDL2.
- **Limits:** The author reports assisted route coverage; full unassisted gameplay remains unverified.
- **License:** No licence file in the repository.

## Primary sources

1. <https://github.com/mstan/SonicTheHedgehogSMSRecomp/blob/14958b4c06c83bbdb2a1ce097f34306b4dc1e925/README.md>
2. <https://github.com/mstan/SonicTheHedgehogSMSRecomp/blob/14958b4c06c83bbdb2a1ce097f34306b4dc1e925/generated/README.md>

## More in Games

- [SonicBlastGGRecomp: a Game Gear Sonic Blast static recompilation](https://awesomerea.org/resources/sonic-blast-gg-recomp-case/index.md) · Case study
- [SonicTheHedgehog2Recomp: a Sonic 2 native runner with ROM-derived code](https://awesomerea.org/resources/sonic-the-hedgehog-2-recomp-case/index.md) · Case study
- [Soulbrandt: a native Demon's Souls PC port](https://awesomerea.org/resources/soulbrandt-case/index.md) · Case study
- [Soulcalibur II HD: statically recompiling the PS3 game for Mac and PC](https://awesomerea.org/resources/soulcalibur2hd-recomp-case/index.md) · Case study
- [Soulcalibur II Recomp: a native Xbox game port by static recompilation](https://awesomerea.org/resources/soulcalibur-ii-recomp-case/index.md) · Case study
- [Souls of the Reaper: a Diablo III Xbox 360 static recompilation](https://awesomerea.org/resources/souls-of-the-reaper-case/index.md) · Case study

## About this entry

The description was reviewed against primary sources.
Original editorial content: MIT. Linked projects, papers and assets retain their own rights and licenses.
