How updeshxp/rexglue-sdk-fork works
ReXGlue is an Xbox 360 static recompilation toolkit: its documented core workflow accepts Xbox 360 PowerPC code and produces portable C++ for native execution. The excerpts show the CLI entry point and codegen-context loading of a configured XEX through the runtime, then binary decoding; the tree identifies analysis, instruction builders, emission, and output modules. The SDK also includes runtime services and graphics backends. Several codegen links and runtime capabilities are based on module names and the README rather than sampled implementations, so those relationships are marked unverified.
Main entry points: system_posix.cpp ReX Runtime · codegen_context.cpp Codegen Context · context.cpp Instruction Builders · project_recompiler.cpp Project Recompiler
Components 29
CLI and Setup
- CLI Entry
src/rexglue/main.cpp - Project Setup
src/rexglue/commands/init_command.cpp
Recompilation
- Codegen Context
src/codegen/codegen_context.cpp - Binary View
src/codegen/binary_view.cpp - Binary Decode
src/codegen/decoded_binary.cpp - Function Analysis
src/codegen/analyze.cpp - Function Scanning
src/codegen/function_scanner.cpp - PPC Instructions
src/codegen/ppc/instruction.h - Instruction Builders
src/codegen/builders/context.cpp - Builder Helpers
src/codegen/builders/helpers.h - Builder Context
src/codegen/builders/builder_context.h - Code Emitter
src/codegen/code_emitter.cpp - Output Writer
src/codegen/codegen_writer.cpp - Project Recompiler
src/codegen/project_recompiler.cpp - Generation Manifest
src/codegen/manifest.cpp
Runtime Services
- XEX Runtime Load
src/rexglue/main.cpp - ReX Runtime
src/core/system_posix.cpp - Xbox Kernel APIs
src/kernel/xboxkrnl/xboxkrnl_threading.cpp - Virtual Filesystem
src/filesystem/virtual_file_system.cpp - Audio Services
src/audio/audio_system.cpp - Input Services
src/input/input_system.cpp
Graphics Backends
- Graphics System
src/graphics/graphics_system.cpp - D3D12 Backend
src/graphics/d3d12/graphics_system.cpp - Vulkan Backend
src/graphics/vulkan/pipeline_cache.cpp - D3D12 Pipeline Cache
src/graphics/d3d12/pipeline_cache.cpp - Vulkan Pipeline Cache
src/graphics/vulkan/pipeline_cache.cpp - D3D12 Shader Bytecode
src/graphics/shaders/bytecode/d3d12_5_1/adaptive_quad_hs.h
Other components
- SDK User
- Portable C++
Connections 29
- SDK User → CLI Entry: invokes
README.md - SDK User → Project Setup: configures project
- CLI Entry → Project Setup: dispatches
- CLI Entry → Codegen Context: starts recompilation
- Codegen Context → XEX Runtime Load: loads XEX through
src/codegen/codegen_context.cpp - XEX Runtime Load → ReX Runtime: uses runtime
- Codegen Context → Binary View: creates view
src/codegen/codegen_context.cpp - Codegen Context → Binary Decode: initializes decode
src/codegen/codegen_context.cpp - Binary Decode → PPC Instructions: uses instructions
- Binary Decode → Function Analysis: feeds analysis
- Function Analysis → Function Scanning: scans functions
- Function Analysis → Instruction Builders: drives translation
- Instruction Builders → Builder Context: uses context
src/codegen/builders/context.cpp - Instruction Builders → Builder Helpers: uses helpers
src/codegen/builders/helpers.h - Instruction Builders → Code Emitter: emits code
- Project Recompiler → Codegen Context: uses context
- Project Recompiler → Output Writer: writes output
- Project Recompiler → Generation Manifest: records generation
- Output Writer → Portable C++: writes C++
- ReX Runtime → Xbox Kernel APIs: provides APIs
- ReX Runtime → Virtual Filesystem: provides file access
- ReX Runtime → Audio Services: provides audio
- ReX Runtime → Input Services: provides input
- ReX Runtime → Graphics System: provides graphics
- Graphics System → D3D12 Backend: selects backend
- Graphics System → Vulkan Backend: selects backend
- D3D12 Backend → D3D12 Pipeline Cache: uses cache
- Vulkan Backend → Vulkan Pipeline Cache: uses cache
src/graphics/vulkan/pipeline_cache.cpp - D3D12 Pipeline Cache → D3D12 Shader Bytecode: loads bytecode
src/graphics/d3d12/pipeline_cache.cpp