#l1x #wasm-file #ebpf #run-wasm #translator #object-file #llvm

bin+lib l1x-wasm-llvmir

WASM to LLVMIR translator for the L1X project

2 releases

0.2.2 Jun 10, 2024
0.2.1 Apr 25, 2024

#852 in Development tools


Used in cargo-l1x

Apache-2.0

140KB
3K SLoC

WASM to LLVM IR code translator

Translates a WASM file to L1X VM llvmir representation. Used by cargo-l1x

Requirements:

llvm-15

Build:

cargo build

Test

cargo test

Run:

cargo run some.wasm -o some.ll

Create eBPF object file:

Require installed llvm-17

./build_ebpf.sh some.ll

Dependencies

~37MB
~640K SLoC