binaryen icon indicating copy to clipboard operation
binaryen copied to clipboard

Optimizer and compiler/toolchain library for WebAssembly

Results 496 binaryen issues
Sort by recently updated
recently updated
newest added

Standard std::[io]fstream does not have a constructor from `std::wstring`, but from `std::string` or `const wchar_t*`. Microsoft STL has an extension that supports a `std::wstring` constructor, which the current code depends...

Add rvalue reference overload for pushResumeEntry and apply std::move throughout suspend/resume operations to eliminate unnecessary copies.

``` ;; primary.wast (module (global $foo (export "foo") (mut funcref) (ref.func $foo)) (func $foo) ) ``` ``` ;; secondary.wast (module (type $f (func)) (import "primary" "foo" (global $gimport$0 (mut funcref)))...

### Test Case ```wat ;; test.wat (module (import "" "get-a" (func $get-a (result i32))) (import "" "get-b" (func $get-b (result i64))) (import "" "get-both" (func $get-both (result i32 i64))) (import...

In projects that merge files, many of the exports in the intermediate files may be meant for the others they are merged with, and not for the final binary. Having...

There is now just one emscripten target called `binaryen_js`. The settings for these two targets were almost identical except for. 1. Some JS_OF_OCAML specific stuff which is kept for the...

This flag has been enabled by default in emscripten for a while now so I don't think we need this here anymore. Also remove the `-Wno-experimental` flag which is no...

See the attached [wasm_opt_local_issue.tar.gz](https://github.com/user-attachments/files/22634029/wasm_opt_local_issue.tar.gz). It contains a `flute.wasm` file. We then optimize this file via ``` % wasm-opt --enable-gc --enable-reference-types --enable-multivalue --enable-exception-handling --enable-nontrapping-float-to-int --enable-sign-ext --enable-bulk-memory --enable-threads --closed-world --traps-never-happen --type-unfinalizing -Os...

`wasm-opt` has the `--no-inline=` argument which one can use to disallow inlining certain functions. It would be great if we have a similar `--prefer-inline=` flag that tells binaryen to always...

Fixes #6989. With this we're able to use `-O4` to optimize dart2wasm programs. I tried this on a few benchmarks, largest one being a 37M .wasm, and it worked fine....