std_memory library

std_memory base module builder for the ball programming language.

Provides a linear memory simulation layer for languages that require low-level pointer arithmetic and manual memory management (C, C++, Rust unsafe blocks, etc.).

The memory model is a single contiguous byte array (heap) plus a stack pointer for automatic allocations. All addresses are integer indices into this array.

High-level object-oriented code should NOT use this module — the hybrid normalizer will only lower operations here when pointer arithmetic or raw memory access is detected.

Depends on std.

Functions

buildStdMemoryModule() Module
Builds the std_memory base module.