Skip to content

Refactor multi-section implementation#37

Open
robpatterson13 wants to merge 12 commits into
mainfrom
rob/refactor-multi-section
Open

Refactor multi-section implementation#37
robpatterson13 wants to merge 12 commits into
mainfrom
rob/refactor-multi-section

Conversation

@robpatterson13

@robpatterson13 robpatterson13 commented Jul 8, 2026

Copy link
Copy Markdown
Collaborator

Changes:

  • Refactor multi-section bytecode/SST container parsing into vihaco-parser-core, with shared parsed-file/section tree types and stricter validation for section bounds, duplicate children, and child offsets
  • Replace the old BytecodeContext / ProgramContext loading model with explicit global context traits BytecodeGlobalContext, SstGlobalContext, SectionNameResolver, and NoContext
  • Split loading into format-specific traits: LoadOwnBytecodeSection, LoadBytecodeSection, LoadOwnSstSection, and LoadSstSection, and replace ProgramLoader with ProgramImage over LocalModule (this means a one-to-one mapping between SectionView and ParsedModule
  • Update #[composite] generated loading to route optional #[loadable] child sections, and removed #[header] and #[program] (including program counter routing)
  • Rename text bytecode concepts to SST, support omitted .global as an implicit empty global context, and update docs/tests/examples for the new APIs

@github-actions

github-actions Bot commented Jul 8, 2026

Copy link
Copy Markdown
PR Preview Action v1.8.1

QR code for preview link

🚀 View preview at
https://QuEraComputing.github.io/vihaco/pr-preview/pr-37/

Built to branch gh-pages at 2026-07-08 18:01 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

@robpatterson13 robpatterson13 linked an issue Jul 8, 2026 that may be closed by this pull request
@robpatterson13 robpatterson13 requested a review from kaihsin July 8, 2026 18:39
@robpatterson13 robpatterson13 marked this pull request as ready for review July 8, 2026 18:39
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.

Merge text multi-section into vihaco-parser

1 participant