Skip to main content

Module jit_loader

Module jit_loader 

Source
Expand description

JIT ELF loader: compiles C source via clang stdin→stdout, parses the relocatable ELF with the object crate, copies sections into an anonymous mmap, applies relocations, and returns an executable function pointer.

Supports x86_64, aarch64, riscv64, loongarch64, and powerpc64le.

Structs§

JitKernel
A compiled C kernel loaded via custom ELF relocator + mmap.