Skip to main content

compile_to_wasm_relocatable

Function compile_to_wasm_relocatable 

Source
pub fn compile_to_wasm_relocatable(source: &str) -> Result<Vec<u8>, ParseError>
Expand description

The RELOCATABLE object compile_to_wasm_linked hands the linker: the program monomorphized, compiled with the optimizer’s oracle, peephole-coalesced, checked linkable, lowered by the BigInt-aware emitter (crate::vm::wasm::assemble_program_linked) and carried with its relocations — not yet linked, so a caller can link it against a runtime of its own.