Skip to content

SYX backends (VM, LLVM, Wasm) ​

SYX feeds three execution / emit backends from one MIR pipeline. LLVM is the only native AOT backend.

BackendTypical commandRole
Stack bytecode VMsyx runFast iteration / default interpret path
LLVM native AOTsyx build --nativeNative machine code
WebAssemblysyx build --wasm / syx run --wasmWasm emit and run
text
.sy → … → MIR ─┬→ VM bytecode
               ├→ LLVM object / native link
               └→ Wasm

Choosing 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).

SYX · Apache-2.0