Grok16 @ 16.1.1 — unified g16 driver auto-detects C vs C++. Pick a language index for every command with full detail columns.
| Index | Scope | Detail |
|---|---|---|
| Master Coder C | C / gnu17 / g16-cc | Every C-facing command, flag mode, env var, and backend path. Unified g16 dispatches to g16-cc for .c sources and -std=gnu17. No separate C driver name. |
| Master Coder C++ | C++ / gnu++26 / g16-cxx | Every C++ command, profile, benchmark, and macro path. Same g16 binary; .cpp and g++16 symlink select g16-cxx. Profiles, PGO, Field-Opt, World_Redata gates. |
| C/C++ Concepts | Textbook visuals | Pointers, arrays, sorting, memory, templates, RAII, move — SVG diagrams and short examples. Press Ctrl+K to jump here from search. |
One binary: $G16_PREFIX/bin/g16. Backends: libexec/grok16/g16-cc, libexec/grok16/g16-cxx. g++16 → symlink to g16. CMake sets both CMAKE_C_COMPILER and CMAKE_CXX_COMPILER to g16.
| # | Item | Short | Detail |
|---|---|---|---|
| 1 | bootstrap | First-time build | Fetch GCC 15, patch BASE-VER 16.1.1, host compile, install prefix, relocate backends, install unified g16, write manifest. |
| 2 | rebuild | Self-host | Incremental (G16_FAST_REBUILD=1) or full bootstrap. Uses libexec backends as CC/CXX for GCC build. Stamp SELFHOST.json. |
| 3 | install | Metadata | VERSION, grok16-toolchain.cmake, grok16-toolchain.json. Requires g16 -dumpversion 16.1.1. |
| 4 | verify | Smoke tests | C verify.c + C++ verify.cpp via unified g16; optional CMake example. |
| 5 | status | Ready probe | Exit 0 when g16 is real ELF and dumpversion matches. |
| 6 | field-bench | Field-Opt bench | field-nexus-bench with G16_FIELD_SPEED. Primary perf gate. |
| 7 | bench | Single profile | G16_BENCH_PROFILE selects profile. Uses g16 on .cpp sources. |
| 8 | bench-all | All profiles | Four profiles → data/bench/latest.json. |
| 9 | profile | PGO train | Generates data/pgo via cxx_pgo_gen workload. |
| 10 | paths | Env dump | All GROK16_* and G16_* paths. |
| 11 | consolidate | Queen migrate | Vendor gcc symlink into Grok16. |