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

Function compile_hosted_program

tests/integration/kernel_integration.rs:72–77  ·  view source on GitHub ↗

Compile a catalog program (primary + aux units) the way the app boot path does.

(name: &str)

Source from the content-addressed store, hash-verified

70 fs_image: Option<&[u8]>,
71 input: &str,
72) -> VirtualMachine {
73 let mut vm = VirtualMachine::new_kernel(kernel);
74
75 if let Some(image) = fs_image {
76 vm.write_ram(FS_META_PA, &FS_IMAGE_PA.to_le_bytes())
77 .expect("write fs image PA");
78 vm.write_ram(FS_META_PA + 8, &(image.len() as u64).to_le_bytes())
79 .expect("write fs image size");
80 vm.write_ram(FS_IMAGE_PA, image).expect("write fs image");

Calls

no outgoing calls