Binaryen is a compiler and toolchain infrastructure library for WebAssembly, written in C++. It aims to make compiling to WebAssembly easy, fast, and effective. 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. 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. 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.

Features

  • Parse and emit WebAssembly
  • Interpret WebAssembly as well as run the WebAssembly spec tests
  • Integrate with Emscripten in order to provide a complete compiler toolchain from C and C++ to WebAssembly
  • Polyfill WebAssembly by running it in the interpreter compiled to JavaScript
  • Flexible and fast for optimization
  • Binaryen's internal IR uses compact data structures and is designed for completely parallel codegen and optimization

Project Samples

Project Activity

See All Activity >

Categories

Compilers, Libraries

License

Apache License V2.0

Follow Binaryen

Binaryen Web Site

Other Useful Business Software
Passwordless Authentication and Passwordless Security Icon
Passwordless Authentication and Passwordless Security

Identity is everything. Protect it with Duo.

It’s no secret — passwords can be a real headache, both for the people who use them and the people who manage them. Over time, we’ve created hundreds of passwords, it’s easy to lose track of them and they’re easily compromised. Fortunately, passwordless authentication is becoming a feasible reality for many businesses. Duo can help you get there.
Get a Free Trial
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Binaryen!

Additional Project Details

Operating Systems

Linux, Mac, Windows

Registered

2021-11-03