Skip to content
This repository was archived by the owner on Apr 8, 2026. It is now read-only.

C frontend MVP pass: sizeof/casts, array init, call checks, and CI#52

Draft
Vbitz wants to merge 51 commits into
mainfrom
c-frontend-m2-pointers-arrays
Draft

C frontend MVP pass: sizeof/casts, array init, call checks, and CI#52
Vbitz wants to merge 51 commits into
mainfrom
c-frontend-m2-pointers-arrays

Conversation

@Vbitz

@Vbitz Vbitz commented Feb 28, 2026

Copy link
Copy Markdown
Contributor

Summary

This PR advances the C frontend MVP by adding:

  • expression support for sizeof and C-style casts
  • fixed-size array brace initializers (local and global, including zero-fill for omitted elements)
  • call-site argument validation (arity + scalar/pointer expectations)
  • CI wiring to exercise test-c-frontend across selfhost matrix platforms
  • C frontend harness portability fixes for host executable names and optional _cbackend C compiler availability

Validation

Buildfile targets run:

  • ./build/build test-c-frontend
  • ./build/build test-fullcompiler-rtg

TODO (remaining for broader C frontend coverage)

  • goto and user labels
  • variadic functions
  • struct / union / enum lowering
  • typedef-aware type name resolution in declarators/expressions
  • floating-point support
  • function pointers / indirect calls

@Vbitz Vbitz force-pushed the c-frontend-m2-pointers-arrays branch 2 times, most recently from 239e39e to fa9b272 Compare March 7, 2026 11:40
Vbitz added 28 commits March 7, 2026 21:49
…and test harness

Includes frontend driver wiring, backend entrypoint decoupling, tests/go migration, and initial C run coverage.
@Vbitz Vbitz force-pushed the c-frontend-m2-pointers-arrays branch from fa9b272 to 353793c Compare March 7, 2026 12:23
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant