unc-vm-compiler-singlepass

Crates.iounc-vm-compiler-singlepass
lib.rsunc-vm-compiler-singlepass
version0.12.2
sourcesrc
created_at2024-03-06 07:01:32.958199
updated_at2024-05-30 09:07:24.534532
descriptionSinglepass compiler for Wasmer WebAssembly runtime
homepage
repositoryhttps://github.com/utnet-org/utility
max_upload_size
id1164430
size506,479
Terrill Tsang (fadeAce)

documentation

README

unc-vm-compiler-singlepass

This crate is a fork of wasmer-compiler-singlepass. A significant number of things changed, but the documentation is not up-to-date yet.

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

Usage

use unc_vm_test_api::{Store, Universal};
use unc_vm_compiler_singlepass::Singlepass;

let compiler = Singlepass::new();
// Put it into an engine and add it to the store
let store = Store::new(&Universal::new(compiler).engine());

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, 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: 6763

cargo fmt