binaryen
binaryen copied to clipboard
Optimizer and compiler/toolchain library for WebAssembly
Hi, I created my own pass that instruments all the malloc/calloc/realloc/free calls in the WASM binary so I can very precisely track the heap memory usage. I don't think my...
I need help in adding the right path to the environment variable on windows. I have downloaded the [Windows release](https://github.com/WebAssembly/binaryen/releases). I've added this `"C:\Users\kirti\Downloads\binaryen-version_111-x86_64-windows\binaryen-version_111\bin\wasm-opt.exe"` path to system environment variables, but...
Binaryen does not currently support block / if / loop / try parameters, which were added to the standard a few years ago via the multi-value proposal. The [Hoot Scheme...
### Discussed in https://github.com/WebAssembly/binaryen/discussions/6501 Originally posted by **orsinium** April 15, 2024 Quite often, after all optimizations, wasm-opt leaves exported functions empty: ``` (module (type (func)) (func (type 0) nop) (export...
I'm using binary-c API. I need to read modules from arbitrary binaries and do some analysis on them, including analyzing their `data` sections. I find `BinaryenCopyMemorySegmentData(BinaryenModuleRef module, const char* segmentName,...
Follow on to https://github.com/emscripten-core/emscripten/issues/13150 If a function is explicitly listed in both the add-list and remove-list, that should be an error. But if there are wildcards, then it's less obvious...
Hi, I found that when I use `WasmBinaryReader` to parse a type-mismatched `wasm` file, it would not raise error messages. So I just wonder could I do the type evaluation...
This is simple to do after #6465 which converted the .def file into a very parse-able format. The emitted JSON file contains things like ```js { id: 'Loop', fields: [...
Based on https://github.com/WebAssembly/binaryen/discussions/6225#discussioncomment-8954759 Currently, many Wasm instructions are defined in `src/wasm-delegations*.def`, which is a C header that Binaryen and tools within Binaryen can use. This file could also be processed...
I have a somewhat large binary (1.9 mb) that contains a function with a lot of nested if-then-else instructions, and running `wasm-opt -O2 --enable-tail-call --enable-mutable-globals --output ` causes a segmentation...