hc-wasmer-compiler-singlepass

Crates.iohc-wasmer-compiler-singlepass
lib.rshc-wasmer-compiler-singlepass
version4.3.6-hc.1
sourcesrc
created_at2024-08-27 21:53:01.818768
updated_at2024-08-28 17:31:01.843006
descriptionSinglepass compiler for Wasmer WebAssembly runtime
homepagehttps://wasmer.io/
repositoryhttps://github.com/wasmerio/wasmer
max_upload_size
id1353862
size1,285,256
Core Dev (github:holochain:core-dev)

documentation

https://docs.rs/wasmer-compiler-singlepass/

README

wasmer-compiler-singlepass Build Status Join Wasmer Slack MIT License crates.io

This crate contains a compiler implementation based on the Singlepass linear compiler.

Usage

use wasmer::{Store, EngineBuilder};
use wasmer_compiler_singlepass::Singlepass;

let compiler = Singlepass::new();
let mut store = Store::new(compiler);

Note: you can find a full working example using Singlepass compiler here.

When to use Singlepass

Singlepass is designed to emit compiled code at linear time, as such is not prone to JIT bombs and also offers great compilation performance orders of magnitude faster than wasmer-compiler-cranelift and wasmer-compiler-llvm, however with a bit slower runtime speed.

The fact that singlepass is not prone to JIT bombs and offers a very predictable compilation speed makes it ideal for blockchains and other systems where fast and consistent compilation times are very critical.

Commit count: 17039

cargo fmt