Commit e3f25c28 authored by yuri's avatar yuri
Browse files

New port: devel/binaryen: Compiler infrastructure and toolchain library for WebAssembly

PR:		229542
Submitted by:	Greg V <greg@unrelenting.technology>
parent 71c498e7
......@@ -201,6 +201,7 @@
SUBDIR += bhyve-vm-goagent
SUBDIR += bicyclerepair
SUBDIR += bin86
SUBDIR += binaryen
SUBDIR += bingrep
SUBDIR += binutils
SUBDIR += bison
......
# $FreeBSD$
PORTNAME= binaryen
DISTVERSION= 1.38.8
CATEGORIES= devel
MAINTAINER= greg@unrelenting.technology
COMMENT= Compiler infrastructure and toolchain library for WebAssembly
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= cmake:outsource python:2.7,build compiler:c++11-lang
USE_GITHUB= yes
GH_ACCOUNT= WebAssembly
USE_LDCONFIG= yes
BINARY_ALIAS= python=${PYTHON_CMD}
.include <bsd.port.mk>
TIMESTAMP = 1531420185
SHA256 (WebAssembly-binaryen-1.38.8_GH0.tar.gz) = 7efc8fcee0cebbe7e95258d3e26da244dfb51774bedede4fe9d58dc601f9d137
SIZE (WebAssembly-binaryen-1.38.8_GH0.tar.gz) = 3493264
The aim of Binaryen, a compiler and toolchain infrastructure library for
WebAssembly, is 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).
WWW: https://github.com/WebAssembly/binaryen
bin/asm2wasm
bin/wasm-as
bin/wasm-ctor-eval
bin/wasm-dis
bin/wasm-emscripten-finalize
bin/wasm-merge
bin/wasm-metadce
bin/wasm-opt
bin/wasm-reduce
bin/wasm-shell
bin/wasm2asm
include/binaryen-c.h
lib/libbinaryen.so
%%DATADIR%%/wasm.js
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment