roadmap BUILT

206. A program image has under 896 KiB, and the failure names an overlap rather than a size

Built, under DECISIONS §171 (where a program image starts, and where the stack goes), ruled by calef on 2026-09-26: option D, with option A inside it. Milestone 121 (ripgrep: enumeration as a capability) is the program that needs it.

What was built. The user address-space map, as a crate: crates/address_space_layout (name provisional). Eight bands tile the first 2 GiB of every process. Every constant several programs agree on derives from them or is checked against them at compile time. The loaders refuse an image that does not fit, with a sentence that says why. notes/address-space-map.md is the explanation and the crate's own docs are the rule.

The ceiling, before and after: 896 KiB, now 496 MiB. ripgrep's 2.61 MiB image fits with room for 190 of it.

The map

band start end size what goes in it
NULL_GUARD 0x0000_0000 0x0020_0000 2 MiB nothing, ever
PAIR_PAGES 0x0020_0000 0x1000_0000 254 MiB pages one builder agrees with the one program it builds; a program's private windows
RUNTIME_WINDOWS 0x1000_0000 0x4000_0000 768 MiB windows a loader or runtime places: std's runtime pages, socket frames, scratch cursors, the initrd, the swap image
HEAP 0x4000_0000 0x5000_0000 256 MiB the heap only
SERVICE_WINDOWS 0x5000_0000 0x6000_0000 256 MiB large windows a service contract names: block channel, C seam, screen aperture
IMAGE 0x6000_0000 0x7F00_0000 496 MiB the program's code and data
STACK 0x7F00_0000 0x7FFF_0000 16 MiB less 64 KiB the stack, down from 0x7FFF_0000; lowest page a guard
PROCESS_PAGES 0x7FFF_0000 0x8000_0000 64 KiB pages the kernel maps into every process; the current-CPU page is the last

What changed

Follow-on

BUGS

Index row

Built 2026-09-26 as DECISIONS §171 option D: crates/address_space_layout (provisional) draws eight bands over the first 2 GiB, the image at 0x6000_0000 and the stack directly above it, so an image may be 496 MiB instead of 896 KiB. Both loaders refuse an image that does not fit, by size, before mapping anything; the linker base is checked against the map; 188 fixed windows are band-checked at compile time; ripgrep's relink is gone.