Go to file
Fedora Release Engineering 4bb83c6c5a Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-01-18 22:52:19 +00:00
.gitignore update to 111 (#2144160) 2022-12-15 12:26:57 +01:00
5317.patch update to 111 (#2144160) 2022-12-15 12:26:57 +01:00
5349.patch update to 111 (#2144160) 2022-12-15 12:26:57 +01:00
README.md add missing description 2020-08-18 18:17:11 +02:00
binaryen-use-system-gtest.patch update to 110 (#2081423) 2022-09-22 22:24:50 +02:00
binaryen.spec Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild 2023-01-18 22:52:19 +00:00
sources update to 111 (#2144160) 2022-12-15 12:26:57 +01:00

README.md

binaryen

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).