SYX backends (VM, LLVM, Wasm)
SYX feeds three execution / emit backends from one MIR pipeline. LLVM is the only native AOT backend.
| Backend | Typical command | Role |
|---|---|---|
| Stack bytecode VM | syx run | Fast iteration / default interpret path |
| LLVM native AOT | syx build --native | Native machine code |
| WebAssembly | syx build --wasm / syx run --wasm | Wasm emit and run |
text
.sy → … → MIR ─┬→ VM bytecode
├→ LLVM object / native link
└→ WasmChoosing a backend
- Day-to-day learning and scripts: VM (
syx run) - Native binaries: LLVM AOT (needs the native/LLVM toolchain — see Install)
- Browser / Wasm hosts:
--wasm
Backend parity and debugging notes live under Compiler Internals (Backend Parity, Backend Debugging).
Related
- What is SYX?
- Capabilities — honest feature boundaries
- Quick Guide — build flags and projects