r/interpreter/native.rs
1//! Native code loading — compile, load, and call C code from R packages.
2//!
3//! Implements the `.Call()` → C function pipeline:
4//! 1. Parse `src/Makevars` for compiler flags
5//! 2. Compile `src/*.c` into a shared library using the system C compiler
6//! 3. Load the `.so`/`.dylib` via `libloading`
7//! 4. Dispatch `.Call()` — convert `RValue` → SEXP, call, convert back
8
9pub mod compile;
10pub mod convert;
11pub mod dll;
12pub mod rmath;
13pub mod runtime;
14pub mod sexp;
15pub mod stacktrace;