A QBE reimplementation in MoonBit — the upstream compiler plus a programmatic IR builder, an in-memory JIT, and LoongArch64/WASM backends
git clone https://github.com/azhzx/qbe.mbt.git
cd qbe.mbt
./scripts/bootstrap.sh./scripts/bootstrap.sh --skip-install./scripts/bootstrap.sh --install-moonfn compile_ir_bin_module_ex(funcs : Array[Fn], datas : Array[Dat], typs : Array[Typ], interner : Interner) -> (Arm64BinModule, Arm64BinFixups) raisefn interpret(src : String, entry? : String, args? : Array[InterpValue], max_steps? : Int, max_depth? : Int, hook? : (String, Array[InterpValue]) -> InterpValue??) -> Result[(InterpValue, String), QbeError]