Skip to content
Beskid The Beskid Book

Beskid

Jump to a Beskid service

Beskid

Jump to a Beskid service

14.4 Codegen and IR

TypedProgram to CodegenInput, ISLE emission, and Cranelift IR.

Codegen and IR

Code generation converts typed syntax facts into machine-oriented artifacts for AOT commands and the separate JIT test and REPL paths.

The production boundary is TypedProgramCodegenInput → ISLE emission → CodegenArtifact. See Build pipeline overview and Backends JIT/AOT.

OutputConsumer
CodegenArtifactbeskid_engine (JIT), beskid_aot (object/link)
ABI metadatabeskid_abi tables consumed by runtime

Typed emitter/transform contracts: Typed emitter and transforms. Lowering runs after merged typed AST is valid.

Spawn lowers to fiber_spawn; builtins align with Builtins and symbols—codegen must not invent alternate calling conventions.

AOT run and interactive JIT