Hi, Our Faust compiler (faust.grame.fr) can directly generate wasm modules from the Faust DSP source code. We typically generate modules that need mathematical functions (log, sin, pow...) which are imported from the JS context (by generating the appropriate module "import" section).
We would like to test our Faust generated wasm code using more optimized mathematical functions (so using a fast_log, fast_sin, fast_pow versions of the functions). Those functions are coded in a C++ file, then compiled as a wasm module using emcc -O3 -s WASM=1 -s SIDE_MODULE=1 fastmath.cpp -o fastmath.wasm. Then we tried to link the fastmath.wasm module using the wasm-merge tool, so doing (for a given pre-compiled Faust DSP filterBank.wasm module) : wasm-merge filterBank.wasm fastmath.wasm, but we get the error : "Fatal: no memory base was imported" 1) is the wasm-merge tool ready for that kind of use case? If yes how it should be used? 2) will the wasm-merge code be part of the binaryen.js library, so that liking wasm modules could possibly dynamically be done in a Web page, or used in nodejs context for instance ? Thanks. -- You received this message because you are subscribed to the Google Groups "emscripten-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
