Skip to main content

bench_sub_vm_recurse/
lib.rs

1//! Recursive sub-VM spawn bench guest.
2//!
3//! Endpoint 0 reads `depth` from `φ[7]` (a0). If zero, returns 0;
4//! otherwise derive_spawns a child Cap::Instance from the Image at
5//! `SLOT_IMAGE_RECURSE` (recursive — same image as the parent),
6//! threads `depth - 1` to the child via `φ[9]` (host_call's
7//! arg-passing convention), and CALLs the child at endpoint 0.
8
9#![cfg_attr(target_os = "none", no_std)]
10
11use subsoil as _;