Expand description
Native extern "C" runtime the generated .s links against (design §8).
Every entry point is a thin shell: decode the raw FFI arguments, run the
shared semantics from crate::runtime_core on a PointerStore, and
turn any RuntimeFailure into rt_fatal (observer error record when
initialized, stderr message, exit(1)). Panics never cross the FFI
boundary: shells run under catch_unwind and report InternalError.
Heap objects are owned by one process-wide PointerStore. A mutex keeps
its safe reference API exclusive across FFI entries and threads; generated
function calls happen only after the guard has been released.
Functions§
- rt_add
- rt_
array ⚠ - Safety
- rt_bang
- rt_
box_ int - rt_call⚠
- Safety
- rt_
class ⚠ - Safety
- rt_
class_ ⚠add_ method - Safety
- rt_
closure ⚠ - Safety
- rt_
construct ⚠ - Safety
- rt_div
- rt_eq
- rt_
fatal ⚠ - Safety
- rt_
get_ free - rt_
get_ ⚠property - Safety
- rt_
globals_ ⚠init - Safety
- rt_gt
- rt_hash⚠
- Safety
- rt_
index - rt_
minus - rt_mul
- rt_neq
- rt_
observe_ result - rt_
observer_ ⚠init - Safety
- rt_
set_ ⚠property - Safety
- rt_
string_ ⚠from_ bytes - Safety
- rt_sub
- rt_
truthy