Compiler & Toolchain Library
8.4k 2026-04-20
WebAssembly/binaryen
A C++ library providing a fast, effective, and easy-to-use compiler and optimizer for WebAssembly.
Core Features
Easy-to-use C and JavaScript APIs for WebAssembly compilation.
Fast, parallel-optimized internal IR for efficient codegen.
Effective WebAssembly-specific optimizations (minification).
Comprehensive toolchain utilities: parse, emit, interpret WebAssembly.
Integration with major language toolchains (e.g., Emscripten, Rust, Kotlin).
Detailed Introduction
Binaryen is a crucial C++ library for the WebAssembly ecosystem, designed to simplify, accelerate, and enhance the compilation process to WebAssembly. It offers a flexible internal IR, optimized for both speed and code size through WebAssembly-specific minification passes. Serving as a backend for various language toolchains like Emscripten, Rust's wasm-pack, and AssemblyScript, Binaryen provides essential utilities for parsing, optimizing, interpreting, and even polyfilling WebAssembly, making it a foundational component for developers building WebAssembly applications.