brik64-bir
Embeddable BRIK-64 BIR bytecode runtime for Rust.
BIR (BRIK Intermediate Representation) is the portable bytecode format produced
by the brikc compiler. This crate lets you load and execute BIR programs from
any Rust project — no compiler toolchain required at runtime.
Installation
[]
= "2.0"
Usage
use ;
let bir_source = read_to_string.unwrap;
let module = parse.unwrap;
let mut interp = new;
let result = interp.run.unwrap;
println!;
BIR Format
BIR is a human-readable line-based bytecode:
FUNCTION fn::add [$a $b] -> i64
LOAD $x $a
LOAD $y $b
CALL_MC 0 ; MC_00 ADD8
STORE $result $r0
RETURN $result
END
Links
- brik64.dev · docs.brik64.dev
- brik64-core — Core monomers for Rust
License
Apache-2.0 — © 2026 BRIK-64 Inc.