Ben Smith
Ben Smith
> Instead of overloading the load instruction with ad-hoc semantics we could go half-way and introduce an address calculation instruction that performs the necessary operation: I like this idea; the...
I wrote a tool to read through all instructions in a wasm binary and look for common instruction sequences. It also changes all indexes to 0, and all memory offsets...
Chatting w/ @aardappel offline, we realized that a lot of these modules are older, and are optimized differently. Here's some data from newer modules. It seems to have similar distributions,...
Yes, primarily fastcomp (asm.js) + asm2wasm, or LLVM + binaryen. Agreed it would be good to look at other toolchains, do you have some good examples I should try?
@kronicdeth here's the tool I was using to generate this data: https://github.com/binji/wasp#wasp-pattern-examples
I don't know much about llvmbox, but maybe it would help? I ended up making things a bit harder for myself in general, since I ended up writing my own...
@turbolent yeah, some folks were asking me about this on the Wasm discord too. I forgot that I ended up modifying wasi-sdk and llvm to get this to compile. See...
Yes, good point. I'll add some ASAP.
Well, it wasn't exactly ASAP, but here are some JS API tests -- https://github.com/WebAssembly/mutable-global/pull/14. I've confirmed they work against the v8 implementation (and thanks to @Cellule, I fixed a number...
Coming back to this -- was this previously discussed at a CG meeting? If not, maybe we should bring it up at the next one.