Grok16 @ 16.1.1 — unified g16 driver. See Master Coder C and Master Coder C++ for full command indexes.
| Path | Role |
|---|---|
| bin/g16 | Single front door — auto-detects C vs C++ from argv[0], -std=, -x, extensions, -lstdc++ |
| bin/g++16 | Symlink to g16 (compat alias; forces C++ detection via basename) |
| libexec/grok16/g16-cc | Relocated GCC C backend (real ELF) |
| libexec/grok16/g16-cxx | Relocated GCC C++ backend (real ELF) |
Override: G16_FORCE_C=1 or G16_FORCE_CXX=1. Defaults: G16_C_STD=gnu17, G16_CXX_STD=gnu++26.
| Command | Description |
|---|---|
| bootstrap | Fetch GCC, host build, install |
| rebuild | Self-host with g16/g++16 |
| install | Write VERSION, cmake, manifest (requires unified g16) |
| verify | C gnu17 + C++ gnu++26 compile via g16 |
| status | Check unified g16 ready |
| bench | Run profile benchmark (default field_opt) |
| field-bench | Field-Opt benchmark |
| bench-all | All profiles → data/bench/latest.json |
| profile | PGO generate via field workload |
| paths | Print resolved paths/env |
| config | paths + config template path |
| manifest | Regenerate cmake + grok16-toolchain.json |
| consolidate | Queen → Grok16 vendor migration |
| Variable | Default | Purpose |
|---|---|---|
| GROK16_ROOT | repo root | Repository root |
| G16_PREFIX | $GROK16_ROOT | Install prefix |
| GROK16_GCC_SRC | $GROK16_ROOT/vendor/gcc | GCC source |
| GROK16_GCC_BUILD | $GROK16_ROOT/build/gcc | Build tree |
| GROK16_QUEEN_ROOT | $SG/NewLatest/Queen | Queen path |
| G16_C_STD | gnu17 | Default C standard |
| G16_CXX_STD | gnu++26 | Default C++ standard |
| G16_FORCE_C | unset | Force g16-cc backend |
| G16_FORCE_CXX | unset | Force g16-cxx backend |
| G16_PKGVERSION | Grok16-16.1.1 | Compiler pkgversion |
| GROK16_BUILD_JOBS | nproc | Parallel make |
| G16_FAST_REBUILD | 1 | Incremental rebuild |
| G16_FULL_REBUILD | unset | Full bootstrap rebuild |
| G16_RELEASE_PROFILE | unset | LTO+PGO+field_opt |
| G16_FIELD_SPEED | unset | field_opt profile |
| G16_ENABLE_LTO | unset | LTO on forge |
| G16_ENABLE_PGO | unset | PGO use flags |
| G16_PGO_GENERATE | unset | PGO generate (profile cmd) |
| GROK16_USE_CCACHE | auto | ccache wrapper |
| G16_DISABLE_BOOTSTRAP | auto with fast | make all vs bootstrap |
| G16_BENCH_PROFILE | field_opt | bench profile name |
| WRDT_G16_PREFIX | — | World_Redata override |
| WRDT_G16_TOOLCHAIN | — | Override toolchain.sh path |
| File | Role |
|---|---|
| data/grok16-profiles.json | Profile definitions |
| data/grok16-config.json | Config template |
| data/grok16-toolchain.json | Generated manifest |
| cmake/grok16-toolchain.cmake | Generated toolchain |
| cmake/g16-field-mandate.cmake | Security compile/link flags |
| SELFHOST.json | Self-host stamp (prefix) |
grok16_driver_extra_flags() — -B$GROK16_GCC_BUILD/gcc/ when prefix lacks lib/gcc.
grok16_ready() — real ELF g++16 @ 16.1.1.
g16_status(ctx) — forge status dict.
write_manifest(ctx) — data/grok16-toolchain.json.
write_cmake_toolchain(ctx) — cmake/grok16-toolchain.cmake.
verify_g16_install(ctx) — ELF + version check.
pythong forge/grok16-forge.py status
pythong forge/grok16-forge.py run gcc
pythong forge/grok16-forge.py run gcc_rebuild