On an AArch64 host the game's 64-bit code can run on the host's CPU (src/nx/runtime/nce/, the setting nce). The
recompile makes no code ahead of time: it writes <game>.nce, the words to patch (SVC, the TLS and counter
registers, the exclusives) and the pools for their stubs. The runtime maps the guest at the host's own addresses and
patches the code after the load. Architecture has the flow; this page has the two design calls
the Android port rests on, the counter's stub, their limits, and how a run measures it.
| Host | NCE |
|---|---|
| AArch64 Linux | 64-bit games, both address spaces, at the guest's own addresses |
| Android 10 and later, arm64 | 64-bit games of the 39-bit address space, moved up (below) |
| Android 9 and earlier, other hosts, 32-bit games | none: the recompile makes the code ahead of time and says why |
Made from docs/platforms/nx/nce.md at 69237645142c. GPL-3.0-or-later.