binaryen
binaryen copied to clipboard
Optimizer and compiler/toolchain library for WebAssembly
As proposed in https://github.com/WebAssembly/gc/issues/259 and documented in the [prototype spec](https://docs.google.com/document/d/1DklC3qVuOdLHSXB5UXghM_syCh-4cMinQ50ICiXnK3Q/edit#).
``` # version 104 $ clang main.c libbinaryen.dylib $ ./a.out dyld[16131]: missing symbol called Abort trap: 6 ``` main.c: ```c #include "binaryen-c.h" // "hello world" type example: create a function...
**Version:** ``` version_103 ``` **System information** **command:** ``` ./bin/wasm-ctor-eval POC4 ``` [POC4.zip](https://github.com/WebAssembly/binaryen/files/7711678/POC4.zip) **Result** ``` 1887835 segmentation fault ./bin/wasm-ctor-eval ``` **GDB information** ``` Program received signal SIGSEGV, Segmentation fault. [----------------------------------registers-----------------------------------] RAX:...
`wasm-pack` uses `wasm-opt` and it tries to download the binary for it when it gets executed. However, if you run this on an M1 it gives the following error: ```...
**Version:** ``` version_103 ``` **System information** **command:** ``` ./bin/wasm-ctor-eval POC5 ``` [POC5.zip](https://github.com/WebAssembly/binaryen/files/7711740/POC5.zip) **Result** ``` Program terminated with signal SIGKILL, Killed. ```
``` x ? 0 : y ==> z & y where z = !x x ? y : 1 ==> z | y where z = !x ``` Only do...
I use emscripten and binaryen to compiled c/c++ to wasm file. ``` //get wast file emcc hello.c -s "BINARYEN='/home/vagrant/emscripten/binaryen/'" -s "BINARYEN_METHOD='native-wasm'" //get wasm file wasm-as a.out.wast -o a.out.wasm ``` ```...
It's just use Abstract namespace where possible
Usage of `__sync_fetch_and_nand` with 64-bit operands in emscripten causes the following error: ``` wasm2js: /usr/local/google/home/sbc/dev/wasm/binaryen/src/passes/I64ToI32Lowering.cpp:471: void wasm::I64ToI32Lowering::visitAtomicCmpxchg(wasm::AtomicCmpxchg *): Assertion `curr->type != Type::i64 && "64-bit AtomicCmpxchg not implemented"' failed. ``` I...
We build binaryen with g++-7 as part of emsdk CI and we are getting unused variable warning regarding: https://github.com/WebAssembly/binaryen/blob/3c1c8ae829d0026024de55aa65dc3d49bd8fd37a/src/passes/GlobalRefining.cpp#L57-L61 See https://app.circleci.com/pipelines/github/emscripten-core/emsdk/1385/workflows/d696706d-f612-429d-94ae-12b0742e7cfb/jobs/7067?invite=true#step-105-303 This seems to not effect g++-8 and above or...