Skip to content
Beskid Platform specification

Beskid

Jump to a Beskid service

Beskid

Jump to a Beskid service

Program assembly - Flow and algorithm

Platform spec article

Program assembly - Flow and algorithm

Spec standingStandard

Owner
Piotr Mikstacki
Submitter
Piotr Mikstacki
  1. Build EffectiveCompilationRoots from CompilePlan + optional PreparedProjectWorkspace (or lockfile replay for LSP).
  2. Emit pipeline phase program.assemble (after workspace.materialize when present).
  3. Discover source paths per AssemblyOptions.discovery.
  4. Parse each unit; build ModuleIndex by collection-only resolver passes on non-entry units.
  5. Hand entry SourceUnit and ModuleIndex to the shared front-end spine (mod host → semantic → HIR resolve/type on entry with prefetch index).
  6. Lower to CodegenArtifact for JIT/AOT consumers.

Workspace resolution step 1 output must feed stage-ordering step 6 (HIR/resolution) through ModuleIndex, not only semantic rules on the entry file.