mora-native
Installation
SKILL.md
Mora Native AOT, Bytecode VM, C FFI & GGUF
Use this skill for Tokio-free execution via Mora Bytecode VM (--vm), Multi-Core Auto-SIMD C99 AOT (--native / --shared), the O(1) Arena Memory Planner (mora ir), and offline GGUF weights with zero API keys.
- For core
.mrsyntax,import, and the 7 Transformer primitives: usemora-lang.
Build & Execution Targets
mora ir app.mr # Inspect IR + ARENA_MARK / PROMOTE_TO_CALLER / ARENA_RESET
mora run app.mr --vm # Run via register Bytecode VM
mora build app.mr -o app --native # Native C99 binary (-O3 -march=native -pthread -lm)
mora build app.mr -o app --native --portable # Omit -march=native for cross-CPU distribution
mora build app.mr -o app.c --emit-c # Emit standalone C99 source only
mora build lib.mr -o libmora.so --shared --emit-header mora.h
mora build app.mr -o app --native --link helper.c # Link external C / .o / .a / .so / -l libraries