Architecture

Grok16 layer architecture

Forge pipeline

forge/grok16-forge.py run gcc_fetch
forge/grok16-forge.py run gcc_configure   # host gcc
forge/grok16-forge.py run gcc_build
forge/grok16-forge.py run gcc_rebuild     # self-host with g16

Unified driver

ArtifactPathRole
g16bin/g16Discern C/C++/Python/ASM + delegate
g16-cclibexec/grok16/g16-ccC backend (gnu17)
g16-cxxlibexec/grok16/g16-cxxC++ backend (gnu++26)
g16-ldbin/g16-ldField linker wrapper → forge/g16-linker.py

Directory layout

PathContents
vendor/gccUpstream gcc-15, BASE-VER 16.2.0
build/gccObject files, stage builds
bin/Installed tools (gitignored until bootstrap)
forge/Python forge — fetch, build, linker, ironclad
data/Profiles, doctrines, manifests, bench JSON

Self-host stamp

Successful rebuild writes SELFHOST.json at repo root with compiler version and timestamp.