Master Coder Index

Grok16 @ 16.1.1 — unified g16 driver auto-detects C vs C++. Pick a language index for every command with full detail columns.

Language indexes

IndexScopeDetail
Master Coder CC / gnu17 / g16-ccEvery 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-cxxEvery 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++ ConceptsTextbook visualsPointers, arrays, sorting, memory, templates, RAII, move — SVG diagrams and short examples. Press Ctrl+K to jump here from search.

Unified driver (16.1.1)

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.

1 — Toolchain commands

#ItemShortDetail
1bootstrapFirst-time buildFetch GCC 15, patch BASE-VER 16.1.1, host compile, install prefix, relocate backends, install unified g16, write manifest.
2rebuildSelf-hostIncremental (G16_FAST_REBUILD=1) or full bootstrap. Uses libexec backends as CC/CXX for GCC build. Stamp SELFHOST.json.
3installMetadataVERSION, grok16-toolchain.cmake, grok16-toolchain.json. Requires g16 -dumpversion 16.1.1.
4verifySmoke testsC verify.c + C++ verify.cpp via unified g16; optional CMake example.
5statusReady probeExit 0 when g16 is real ELF and dumpversion matches.
6field-benchField-Opt benchfield-nexus-bench with G16_FIELD_SPEED. Primary perf gate.
7benchSingle profileG16_BENCH_PROFILE selects profile. Uses g16 on .cpp sources.
8bench-allAll profilesFour profiles → data/bench/latest.json.
9profilePGO trainGenerates data/pgo via cxx_pgo_gen workload.
10pathsEnv dumpAll GROK16_* and G16_* paths.
11consolidateQueen migrateVendor gcc symlink into Grok16.