Skip to main content

encode_program

Function encode_program 

Source
pub fn encode_program(program: &CompiledProgram, interner: &Interner) -> Vec<u8> ⓘ
Expand description

Serialize a whole compiled program into a self-contained, portable ISA frame: MAGIC ‖ version ‖ checksum ‖ bincode(WireProgram). The interner is the one the program was compiled against — every symbol string is captured from it so the frame stands alone.