ScarletNX / ScarletNX documentation / CPU implementation plan · ← previous
Sources
- FFRI Security, Project Champollion, "Reverse-engineering Rosetta 2" parts 1 and 2,
https://github.com/FFRI/ProjectChampollion (Apache-2.0). Its data comes from macOS 11 (2021), so later versions may
differ. It holds analysis documents and a cache parser, not translator code.
- Dougall Johnson, "Why is Rosetta 2 fast?", 2022,
https://dougallj.wordpress.com/2022/11/09/why-is-rosetta-2-fast/.
- Apple, "Accelerating the performance of Rosetta", Virtualization framework documentation,
https://developer.apple.com/documentation/virtualization/accelerating-the-performance-of-rosetta.
- Apple, "Rosetta 2 on a Mac with Apple silicon", platform security documentation,
https://support.apple.com/guide/security/rosetta-2-on-a-mac-with-apple-silicon-secebb113be1/web.
- LLVM, ThinLTO design and incremental backend caching, https://llvm.org/docs/ThinLTO.html.
- Switchbrew, Horizon SVC contracts, https://switchbrew.org/wiki/SVC.
- Arm, the Arm Architecture Reference Manual for FEAT_FlagM, FEAT_FlagM2 and FEAT_AFP, https://developer.arm.com/.
- attesor, https://github.com/Inokinoki/attesor. This plan uses the outline of Rosetta 2 in its README. Its README
claims the MIT license but the repository has no license file, and the README says AI tools wrote much of it. It
contains Ghidra output of Apple's Rosetta binaries (
rosetta_decomp.c and rosettad_decomp.c) and code
reconstructed from that output. None of it can be ported. Its documents conflict with Champollion in places (the cache
location, an interpreter mode, optimization passes), so this plan uses none of their claims without a second source.
← previous