Crates.io | linera-wasmer-compiler-singlepass |
lib.rs | linera-wasmer-compiler-singlepass |
version | |
source | src |
created_at | 2024-06-07 12:53:08.764289 |
updated_at | 2024-11-01 13:47:39.431671 |
description | Singlepass compiler for Wasmer WebAssembly runtime |
homepage | https://wasmer.io/ |
repository | https://github.com/wasmerio/wasmer |
max_upload_size | |
id | 1264767 |
Cargo.toml error: | TOML parse error at line 19, column 1 | 19 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include` |
size | 0 |
wasmer-compiler-singlepass
This crate contains a compiler implementation based on the Singlepass linear compiler.
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.
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.