Skip to content

Support C and C++ project builds from captured recipes - #177

Merged
vishvananda merged 3 commits into
mainfrom
experiment/c-plan-compatibility
Nov 18, 2026
Merged

vishvananda merged 3 commits into
mainfrom
experiment/c-plan-compatibility

Conversation

@vishvananda

@vishvananda vishvananda commented Nov 18, 2026 •

Copy link
Copy Markdown
Owner

Build the pinned browser projects with their original sources and target SDK headers. This adds the compiler support those recipes needed.

  • Accept C99 and GNU99 flags and emit external C inline definitions where required.
  • Support the GCC header constructs used by the projects, including overflow predicates, vector operations and GNU attributes.
  • Compile preprocessed x86-64 assembly through cppgm and support the BMI2 shifts used by Zstd.
  • Support -iquote in compilation, preprocessing, and source views, including #include_next.

Regression fixtures live in the existing PA29, PA30, and optional PA38 lanes.

Validation

  • The final Wasm compiler replayed all 12 pinned Linux projects in Chromium. All 244 objects, 13 archives, and seven executables matched their references byte for byte. The outputs passed functional smoke tests in Alpine.
  • The Chromium -iquote case produced the same x86-64 object as native cppgm.
  • PA38 native and Wasm tests, PA36 smoke, the debug-info tests, self-host through PA5, and native inception passed locally.
  • The strict test report passed all 11,325 tests. The student export matched the tracked references, and its reference bundle installed and passed all 44 wrapper checks.
  • The architecture and placement audits and harness tests passed.
  • A paired O3 compile of the frozen semantic overload workload used 0.009% more instructions than a fresh main build and emitted the same object. Cycle and wall-time readings varied across blocks, so this run gives no precise timing estimate.

@vishvananda
vishvananda merged commit 90ebfa8 into main Nov 18, 2026
36 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant