Skip to content

WenLY1/wasm2native

 
 

Repository files navigation

wasm2native

Toolchain for compiling WebAssembly to native

Overview

wasm2native allows developer to compile the WebAssembly file into a native object file, and then link it with an auxiliary library into a native binary, e.g., an executable file, shared library or static library. It removes the Wasm runtime dependency and provides two modes:

  • sandbox mode: the Wasm sandbox is kept, and the Wasm address space and native address space are kept separate.
  • no-sandbox mode: the Wasm sandbox is discarded; this means it allows sharing pointers (e.g., memory pointers, function pointers) between Wasm and native and the address space is the same in Wasm and native.

Getting started

License

wasm2native uses the same license as LLVM: the Apache 2.0 license with the LLVM exception. See the LICENSE file for details. This license allows you to freely use, modify, distribute and sell your own products based on wasm2native. Any contributions you make will be under the same license.

About

Compile WebAssembly to native binary

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 89.8%
  • Python 4.1%
  • Shell 3.6%
  • CMake 1.7%
  • C++ 0.8%