What is the current mechanism for loading the wasm file you are supplying?
Are you using emscripten's dynamic linking capability (i.e. MAIN_MODULE +
SIDE_MODULE?).

If that answer is yes, and you are asking about linking a SIDE_MODULE into
the MAIN_MODULE ahead of time, its not something that is supported no.
Also, shared libraries (side moudles) are are only slightly more obfuscated
than object files and `.a` archives.  They are all in the wasm format which
is fairly easy to disassembly.  If you want to try to prevent decompilation
or disassembly you would need to do more than just ship as a shared library
(side module) you would also need to perform some kind of obfuscation,
which by its nature (and the nature of WebAssemlby in particular) is always
going to have limits.

On Sat, Jun 19, 2021 at 3:45 PM Mehaboob kk <[email protected]> wrote:

> Hello,
>
> Is it possible to combine multiple .wasm files to one single .wasm file?
>
> Scenario:
> I want to share a library(SDK) to an end customer who is building the
> .wasm/JS application. Customer concerned that loading multiple wasm files
> is not efficient. So we wanted to combine two wasm files. Although I can
> share static lib generated using Emscripten, its not preferred because .a
> file is easy to reverse compared to wasm right?
>
> Any inputs on this please?
>
> Thank you
>
> --
> 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].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/emscripten-discuss/CAO5iXcCQC45LU%3DNMFev5PYjn%2BmzOOgDfhXx0ahDXq8GqKRVjJQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/emscripten-discuss/CAO5iXcCQC45LU%3DNMFev5PYjn%2BmzOOgDfhXx0ahDXq8GqKRVjJQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/emscripten-discuss/CAL_va29zxMEFFi8gHEP5C0pBJ0idQh8qeqT%2B1S5v%3D9XO5BMKNA%40mail.gmail.com.

Reply via email to