#jit #compiler #aot #back-end

wasmer-clif-backend-asml-fork

Wasmer 运行时 Cranelift 编译器后端

1 个不稳定版本

0.1.0 2020 年 6 月 22 日

#879 in WebAssembly


用于 wasmer-runtime-asml-fork

MIT 许可证

640KB
14K SLoC

Wasmer logo

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

Wasmer Cranelift 后端

Wasmer 是一个独立的 JIT WebAssembly 运行时,旨在与 Emscripten、Rust 和 Go 完全兼容。 了解更多

这个 crate 代表了 Wasmer 的 Cranelift 后端集成。

用法

在 Wasmer 独立版中的用法

如果您使用的是 wasmer CLI,您可以通过以下方式指定后端:

wasmer run program.wasm --backend=cranelift

在 Wasmer 嵌入版中的用法

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

use wasmer_clif_backend::CraneliftCompiler;

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

依赖项

~15MB
~329K SLoC