Skip to main content

Crate nub_arch_local

Crate nub_arch_local 

Source
Expand description

In-process Arch impl: simulates the CPU + MMU substrate with Rust data structures. Runs directly in the host process; no sandbox, no cross-compilation.

run_instance is the in-process counterpart to nub-arch-x86’s JIT-driven run_pvm_with_mem: takes a published [javm_cap::InstanceCap] + its referenced [javm_cap::image_cap::ImageCap] (both Global-allocated locally), wires the bytecode + memory layout to [javm_exec::Interpreter::run], and produces an [InvocationResult].

Structs§

LocalArch
In-process Arch backend.

Enums§

LocalArchError
Stub error type for the skeleton — the local backend cannot fail today. Replace with a real error enum when invocation lands.

Functions§

run_instance
Run an Instance through the byte-PVM interpreter, returning the same InvocationResult shape nub-arch-x86’s JIT path produces. The exit-reason mapping matches the JIT exit codes (HostCall=4, Trap=7, etc.) so the two backends agree on a well-formed program.