Field Primer — Consumer Requirements

Minimum steps to use Grok16 as the C/C++ toolchain for Field stack projects.

Checklist

  1. Bootstrap Grok16; verify and field-bench pass.
  2. Export G16_PREFIX (install prefix with bin/g++16).
  3. Point CMake at cmake/grok16-toolchain.cmake.
  4. Include g16-field-mandate.cmake on all field targets.
  5. Run World_Redata parity before push.

C standard

Default: gnu17 (G16_C_STD). Compile with unified g16 on .c sources — no separate C driver command.

C++ standard

Default: gnu++26 (G16_CXX_STD). World_Redata: field_g16.hh requires __cplusplus >= 202400.

Profile selection

Project typeProfile
FieldX86 / entropy / NEXUS CPUfield_opt
Matrix scoringai
CANVAS dispatch kernelsfield_compute
AMOURANTHRTX CPU prepvulkan_rtx

Hot paths

CMake example

cmake -S . -B build \
  -DCMAKE_TOOLCHAIN_FILE=$GROK16_ROOT/cmake/grok16-toolchain.cmake \
  -DCMAKE_PROJECT_INCLUDE=$GROK16_ROOT/cmake/grok16-profile-field-opt.cmake