Rosetta 2. The runtime reads switches such as ROSETTA_PRINT_IR, which prints each block with its flag liveness,
and ROSETTA_PRINT_SEGMENTS (Champollion part 2).
ScarletNX now. tests/native_bench.c times six assembly kernels (integer, FP, SIMD, crypto, tricks, calls) with no
native or QEMU baseline, and no doc records its numbers. At exit the log gives the AOT variant hits and misses and the
JIT batch statistics (jit_report in guest_jit.c, SnxJitStats in jit_service.h). The Windows sampler, Tracy and
gdb_jit exist. AOT functions carry F_<address> names in the module's symbol table (ir_codegen.c, link_elf.c),
so Linux perf names them, but it cannot name JIT code. tests/native_qemu_differential.c checks samples of every row
of the A64 decoder against qemu-aarch64 -cpu max, one instruction at a time.
Every gain this plan claims needs these items first.
scarletnx-gnuabi,
with the same programs built natively, so every host that runs the GNU ABI runtime gets a speed ratio. The suite stays
single-threaded until that runtime runs threads.tests/native_bench.c, tests/CMakeLists.txt, a new suite beside tests/llvm_perf/.jit_report and SnxJitStats with the wait time per miss (from rt_miss to the thread running
again) and the calls into NRO code. Add a cpu_stats recompile setting that compiles counters into the module for
lookups, stale and pc check mismatches, and helper calls by kind. Print the counters every few seconds as well as at
exit.rtapi.c, guest_jit.c, jit_service.c, ir_codegen.c, settings.txt.ROSETTA_PRINT_IR does for Rosetta.ir_promote.c, ir_codegen.c, module_a64.c.tests/native_module.c program match a count by hand.perf annotate can show guest addresses.jit_service.c, code_loader.c.perf report on a game run names guest functions in JIT code as it does in AOT code.tests/native_qemu_differential.c, sharing its QEMU harness in tests/qemu_ref/.Fix the docs and comments listed under Docs and comments that are out of date before the plan's changes pile more on top. S, P0.
Made from docs/layers/cpu/plan.md at 69237645142c. GPL-3.0-or-later.