BSD Ports

devel/binaryen 116 NetBSD

Compiler and toolchain infrastructure library for WebAssembly

System
NetBSD
Repository
pkgsrc
Maintainer
[email protected]
License
apache-2.0
Categories
devel
Package size
3982.7 KiB, 20713.9 KiB installed

Description

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 (see an overview later down) that can improve code size and speed. 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.

In the other systems

SystemPortVersion
NetBSDdevel/binaryen116
FreeBSDdevel/binaryen133
OpenBSDlang/binaryen133
DragonFlydevel/binaryen123

Install

Binary package:

pkgin install binaryen

From pkgsrc:

cd /usr/pkgsrc/devel/binaryen && make install clean

Dependencies

No port depends on this one.