Install Asm2wasm On A Debian, Ubuntu, Alpine, Kali And MacOS

Install Asm2wasm On A Debian, Ubuntu, Alpine, Kali And MacOS

asm2wasm

compiler and toolchain infrastructure library for WebAssembly

Maintainer: Markus Koschany



Section: devel

Install asm2wasm

  • Debian apt-get install binaryen Click to copy
  • Ubuntu apt-get install binaryen Click to copy
  • Alpine OS apk add binaryen Click to copy
  • Kali Linux apt-get install binaryen Click to copy
  • macOS brew install binaryen Click to copy

binaryen

compiler and toolchain infrastructure library for WebAssembly

Binaryen is a compiler and toolchain infrastructure library for WebAssembly, written in C++. It aims to make compiling to WebAssembly easy, fast, and effective: * Easy: Binaryen has a simple C API in a single header, and can also be used from JavaScript. It accepts input in WebAssembly-like form but also accepts a general control flow graph for compilers that prefer that. * Fast: Binaryen's internal IR uses compact data structures and is designed for completely parallel codegen and optimization, using all available CPU cores. Binaryen's IR also compiles down to WebAssembly extremely easily and quickly because it is essentially a subset of WebAssembly. * Effective: Binaryen's optimizer has many passes that can improve code very significantly (e.g. local coloring to coalesce local variables; dead code elimination; precomputing expressions when possible at compile time; etc.). These optimizations aim to make Binaryen powerful enough to be used as a compiler backend by itself. One specific area of focus is on WebAssembly-specific optimizations (that general-purpose compilers might not do), which you can think of as wasm minification , similar to minification for JavaScript, CSS, etc., all of which are language-specific (an example of such an optimization is block return value generation in SimplifyLocals).

Install the latest version of asm2wasm in Debian, Ubuntu, Alpine, Kali and macOS from terminal. To install the asm2wasm just copy the above command for your OS and run into terminal. After you run the command it will grab the latest version of asm2wasm from the respository and install it in your computer/server.