Skip to main content

Overview

PPCImageInfo is a structure that describes the PowerPC image layout for a recompiled Xbox 360 application. This structure is passed from the generated config header into the ReXApp constructor to configure the runtime memory layout.

Definition

struct PPCImageInfo {
  uint32_t code_base;
  uint32_t code_size;
  uint32_t image_base;
  uint32_t image_size;
  const PPCFuncMapping* func_mappings;
};

Fields

code_base
uint32_t
Base address of the executable code segment in PPC address space
code_size
uint32_t
Size of the code segment in bytes
image_base
uint32_t
Base address of the entire loaded image in PPC address space
image_size
uint32_t
Total size of the loaded image in bytes
func_mappings
const PPCFuncMapping*
Pointer to array of function mappings between PPC addresses and recompiled native functions

Usage

This structure is typically initialized with constants from the generated configuration header:
class MyApp : public rex::ReXApp {
public:
    static std::unique_ptr<rex::ui::WindowedApp> Create(
        rex::ui::WindowedAppContext& ctx) {
      return std::unique_ptr<MyApp>(new MyApp(ctx, "my_app",
          {PPC_CODE_BASE, PPC_CODE_SIZE, PPC_IMAGE_BASE,
           PPC_IMAGE_SIZE, PPCFuncMappings}));
    }
};
The values are generated by the ReXGlue toolchain during the recompilation process and should not be modified manually.

See Also

  • rex::ReXApp - Base application class that uses this structure

Build docs developers (and LLMs) love