Skip to content
Beskid Platform specification

Beskid

Jump to a Beskid service

Beskid

Jump to a Beskid service

Backends (JIT and AOT) - Design model

Platform spec article

Backends (JIT and AOT) - Design model

Spec standingStandard

Owner
Piotr Mikstacki
Submitter
Piotr Mikstacki
flowchart TB
  artifact[CodegenArtifact sealed]
  artifact --> jitPath[JIT beskid run]
  artifact --> aotPath[AOT beskid build]
  jitPath --> load[Load runtime + resolve exports]
  load --> exec[Execute entry fiber]
  aotPath --> obj[Emit object module]
  obj --> link[Optional link + runtime prep]
  • JIT path (beskid run): compile artifact in-process and execute resolved entrypoint.
  • AOT path (beskid build): emit object, optionally prepare runtime, optionally link native output.

Both paths must consume the same lowering artifact contract. JIT and AOT must not rebuild ProgramAssembly or re-resolve CompilePlan; assembly is owned by beskid_analysis front-end services only.