Master Coder — C++

Every C++ command and flag for Grok16 @ 16.1.1. Use g16 (or g++16 symlink) — auto-detects C++ and runs g16-cxx.

C++ commands & driver

#ItemShortDetail
1g16Unified driver (C++)Same bin/g16 as C. Auto-selects g16-cxx for .cpp/.cxx/.cc, -std=gnu++26, -x c++, -lstdc++, or argv[0] g++16 symlink. One command for the whole toolchain.
2g++16Compat symlinkSymlink to g16. Preserves legacy scripts and muscle memory. Detection uses basename g++16 → C++ mode immediately.
3g16-cxxC++ backendRelocated GCC g++ driver. Handles libstdc++, crtbegin/crtend, template parsing, gnu++26. Unified g16 execv() here in C++ mode.
4g16 -std=gnu++26Default C++ standardG16_CXX_STD=gnu++26. World_Redata field_g16.hh requires __cplusplus >= 202400. Pass explicitly when mixing with older TUs.
5verify (C++ leg)C++ smokeverify.cpp compiled with g16 -std=gnu++26. Checks __cplusplus >= 202400. Optional CMake minimal-cmake-project links via same g16 binary.
6PROFILE cxxC++ compile flagsFull profile: -std=gnu++26 -O3 -march=native, entropy/Field macros, vectorize, fast-math per profile.
7PROFILE linkC++ link flagsLTO thin/full from grok16_lto probe, OpenMP for field_compute. Normalized by grok16-profile-flags.py.
8PROFILE sourceBench source pathReturns examples/*/bench .cpp for the profile. Used by _bench_run_one and PGO training.
9PROFILE defs-D macros onlyProfile definition flags without optimization bundle — useful for CMake INTERFACE targets.
10PROFILE cxx_pgo_genPGO generate-fprofile-generate to data/pgo/. Run via grok16-toolchain.sh profile.
11PROFILE cxx_pgo_usePGO use-fprofile-use after training. Enable G16_ENABLE_PGO=1 on field-bench for ~few-% win.
12field_optPrimary profileFieldX86 + entropy + NEXUS. Bench: field-nexus-bench ~2.1ms kernel vs -O2 2.65ms (~19%).
13aiMatrix profileNEXUS matrix scoring. Bench wall_ms ~4.0. -flto=thin link.
14field_computeCANVAS profileOpenMP SIMD dispatch kernels. field-canvas-kernel bench.
15vulkan_rtxRTX SIMD profileAVX2/FMA CPU prep. Shares field-nexus-bench source.
16field-benchPrimary benchmarkG16_FIELD_SPEED=1 → field_opt. Writes data/bench/latest_*.json.
17bench-allAll profilesRuns field_opt, ai, field_compute, vulkan_rtx sequentially.
18g16_field_mandateCMake securityfortify, stack protector, RELRO, PIE on field targets. Required for World_Redata L2.
19G16_FORCE_CXX=1Force C++ backendSkip detection — always g16-cxx. Useful when linking C++ objects with ambiguous argv.
20redata.cli parityParity gatePython ↔ C++ WRDT bytes. Requires real g16 @ 16.1.1 dumpversion in manifest.