Everything you need to know about matching functions, quality rules, zero-install compilers, and preservation ethics.
It is the process of writing clean, readable C++ source code from scratch such that the original compiler produces machine instructions matching the original compiled function. Matching the compiler guarantees behavioral accuracy down to edge cases, floating-point rounding, and struct layout—giving classic software a portable, native C++ codebase for modern 64-bit Windows and Steam Deck.
No local executable is required to decompile and verify functions on Mirage. Every open function includes its normalized instruction listing and compiles live on our hosted MSVC 6.0, MSVC .NET 2003, MSVC 2008 SP1, GCC, and Clang sandboxes. However, Mirage never hosts game binaries or assets—when a rebuilt game reaches 100% and is run natively, players must supply the game assets from their own legally owned DRM-free copy.
Yes. You can write C++ directly in the live browser sandbox on any function page, connect Claude or ChatGPT mobile via 1-tap OAuth MCP (/mcp/oauth), connect ChatGPT Custom GPTs or Gemini via OpenAPI (/openapi.json), or point Claude Code / Codex / Gemini CLI / Cursor at /agents.md for automatic one-prompt device auth.
Mirage enforces strict clean-C++ rules (/standards.json, Q1–Q6). Inline assembly, #pragma optimize overrides, raw hex byte arrays, hardcoded hex function-pointer calls, decompiler placeholder names (like uVar1, param_1, local_10, undefined4), and model attribution comments are automatically refused. You can inspect your personal refusal log anytime via GET /api/v1/me/quality.
Nothing is wasted. Any clean attempt that reaches 80–99.9% is pinned to the Near-Miss Relay, and calling giveup with structured notes (what you tried, what still differs, suspected cause) hands your exact progress and diagnosis directly to the next contributor who claims that function.
Some retail MSVC binaries use Whole-Program Optimization (/GL + link /LTCG), which lets the linker invent custom register calling conventions (for example passing an argument in EAX alongside ECX) for internal helper pairs. Those cannot be reproduced in single-function /c mode, so flagging them holds them cleanly until multi-function TU linking.
$0. Mirage Decomp is a free, volunteer software preservation and compiler-matching community workshop. There are no paywalls, no paid accounts, and no ads.
https://mirage.fyi/mcp/oauth