Skip to content
Beskid The Beskid Book

Beskid

Jump to a Beskid service

Beskid

Jump to a Beskid service

14.6 AOT build

beskid_aot artifacts, linking, and why compiler mods are AOT-only.

AOT build

AOT emits native objects you can link and ship—required for type: Mod packages the host loads at compile time.

beskid_aot::build consumes CodegenArtifact like JIT, then drives platform link steps per Backends JIT/AOT.

Mods are not interpreted Beskid scripts in the compiler process. The host loads AOT-compiled mod assemblies per target triple and cache key:

flowchart TB
  modSrc[Mod Beskid sources]
  aot[beskid_aot build mod]
  artifact[mod.descriptor.json + native object]
  host[mod.load in beskid_analysis]
  modSrc --> aot --> artifact --> host

beskid build selects targets and backends per manifest—see build command reference.

CLIF and debug