Expand description
Main RAM Simulation (24MB)
This module provides the main RAM implementation for the GameCube recompiler runtime. The GameCube has 24MB of main RAM, mapped to addresses 0x80000000-0x817FFFFF.
§Memory Optimizations
- Removed redundant
sizefield (can be derived fromdata.len()) - All read/write functions use
#[inline]for hot-path optimization - Explicit bounds checks with early returns for better branch prediction
§Address Translation
GameCube uses 24-bit addressing for RAM (addresses 0x00000000-0x00FFFFFF). The upper 8 bits are masked off to get the physical RAM offset.
Structs§
- Ram
- Main RAM implementation (24MB).