There isn't a good way to do that right now, but you can use wabt or
binaryen to emit wasm text, edit that, and convert back to wasm.

(It's almost possible to do this in binaryen.js - we have the tools to get
the function's module, but not set it, yet.)

On Tue, Feb 12, 2019 at 11:09 PM Duan Bing <[email protected]> wrote:

> I write  a C source file,  declare an external function by
> extern "C" int say_hello(const char*, int);
>
> So after compiling by `emcc`, I got
>
>   (import "env" "_say_hello" (func (;30;) (type 1)))
>
> in the math.wast. Everything is ok for now.  but I want to change the
> module of _say_hello to another name, like "mymodule".
>
> How can I approach that?
>
> --
> 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.
>

-- 
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.

Reply via email to