#jit #compiler #aot

wasmer-singlepass-backend-l1x

Wasmer运行时单遍编译后端

1 个不稳定版本

0.18.0 2023年4月11日

#1318 in WebAssembly

28 每月下载量
用于 wasmer-runtime-l1x

MIT 许可证

1MB
25K SLoC

Wasmer logo

Build Status License Join the Wasmer Community Number of downloads from crates.io Read our API documentation

Wasmer单遍后端

Wasmer是一个独立的JIT WebAssembly运行时,旨在与Emscripten、Rust和Go完全兼容。[了解更多](https://github.com/wasmerio/wasmer)。

此crate代表Wasmer的单遍后端集成。

用法

在Wasmer独立版本中的用法

如果您使用的是wasmer CLI,您可以使用以下命令指定后端

wasmer run program.wasm --backend=singlepass

在Wasmer嵌入式版本中的用法

如果您使用Wasmer嵌入式版本,您可以将单遍后端指定给compile_with函数

use wasmer_singlepass_backend::SinglepassCompiler;

// ...
let module = wasmer_runtime_core::compile_with(&wasm_binary[..], &SinglepassCompiler::new());

依赖项

~10MB
~210K SLoC