Skip to main content

Module linker

Module linker 

Source
Expand description

Linking pass: converts a content-addressed Program into a flat LinkedProgram.

The linker topologically sorts function blobs by their dependency edges, then flattens per-blob instruction/constant/string pools into merged arrays, remapping operand indices so they reference the correct global positions.

Enums§

LinkError

Functions§

link
Link a content-addressed Program into a flat LinkedProgram.
linked_to_bytecode_program
Convert a LinkedProgram back to the legacy BytecodeProgram format for backward compatibility with the existing VM executor.