MCPcopy Create free account
hub / github.com/LPC4/Full-Stack / cached_stdlib_objs

Function cached_stdlib_objs

tests/integration/hll_conformance.rs:18–24  ·  view source on GitHub ↗

Compile the hosted stdlib once (per module, no concatenation) and link every user program against the objects.

()

Source from the content-addressed store, hash-verified

16 .expect("stdlib compile failed")
17 })
18}
19
20// Compile a user program, link it against the cached stdlib, and run it in the VM.
21fn run_hll(src: &str) -> StepOutcome {
22 let mut pipeline = CompilationPipeline::new();
23 pipeline.set_write_artifacts(false);
24
25 let user_result = pipeline.compile(src).expect("user compile failed");
26 let (_, user_tokens) = pipeline.compile_ir_to_assembly_with_tokens(&user_result.ir_program);
27 let user_obj = pipeline

Callers 1

run_hllFunction · 0.70

Calls 1

compile_stdlib_objectsFunction · 0.85

Tested by

no test coverage detected