repowiseboykopovar/anyps5

Architecture of boykopovar/anyps5

boykopovar/anyps5 is 11,411 source files holding 187,415 symbols across 5 modules, written mainly in C++, Python, C. The largest module is core, with 8,736 files, and 5 files are entry points into the dependency graph.

How anyps5 fits together

The relinker in core/relinker starts at main.cpp, which launches the command-line parser defined in core/relinker/cli/include/Cli.hpp, and its conversion code builds the output for Windows, Linux and macOS. The shader recompiler in core/shader/recompiler translates the AMD RDNA guest shader code a game supplies into SPIR-V and keeps finished results so repeated requests can skip the translation. The core/libs/prx/libSceAgc directory holds the sceAgc functions, and each one appends a hardware command packet to a CommandBuffer. The core/libs/prx/libSceAgcDriver library receives those packets and exports the driver's queue, event, resource and settings calls. The core/libs/prx/libc directory implements the C and C++ standard library that PS5 guest programs call, running those functions on the host machine. The tools directory contains Python scripts for checking repository conventions and comparing performance captures.

Largest modules

  • core: 8,736 files and 1,797,578 lines of code
  • tools: 269 files and 97,619 lines of code
  • demo: 21 files and 5,308 lines of code
  • cmake: 3 files and 35 lines of code
  • 3rdparty: 2 files and 2,333 lines of code

Languages

By file count: C++ 8,505 files, Python 450 files, C 41 files, JavaScript 34 files, Shell 1 file.

Documentation

Repowise documents anyps5 in 5,440 pages generated from the source, 35 of them written explanations of the repository and its modules. Module guides include:

  • core/libs/prx/libSceAgc: AGC Control Flow Commands
  • core/relinker/relinker/include/relinker/domain: Analysis
  • core/relinker/codegen/src: Codegen Source
  • core/libs/prx/libSceAgcDriver/Execution/include/Driver: Driver
  • core/relinker/elfpatcher/src/windows: Elfpatcher Windows

More on anyps5: summary and FAQ, codebase overview, code health.

Related guide: Best dependency graph tools for monorepos