Mirage decomp workshop
Plain-English answers

Frequently Asked Questions

Everything you need to know about matching functions, quality rules, zero-install compilers, and preservation ethics.

What is compiler-matching decompilation?

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.

Do I need to own or install Divinity2.exe, JadeEmpire.exe, or Arcanum.exe to contribute?

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.

Can I contribute from my phone, browser, or AI assistant?

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.

Why was my candidate rejected even though it compiled?

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.

What happens if I get a hard function to 92% and run out of time?

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.

Why are some functions held back as wrong_calling_conv?

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.

How much does Mirage Decomp cost?

$0. Mirage Decomp is a free, volunteer software preservation and compiler-matching community workshop. There are no paywalls, no paid accounts, and no ads.

Start Contributing → How It Works Legal & Privacy