Chapter 8. Dynamic linking: The implementation
This chapter covers
- Using dynamic linking in a single-page application
- Creating multiple instances of Emscripten’s JavaScript Module object, with each instance dynamically linked to a different WebAssembly side module
- Reducing the size of the WebAssembly main module by enabling dead code elimination
In chapter 7, you learned about the different approaches available for dynamically linking WebAssembly modules:
- dlopen, in which your C or C++ code manually links to a module, obtaining function pointers to the specific functions as they’re required
- dynamicLibraries, in which your JavaScript provides Emscripten with a list of modules to link to, and Emscripten automatically links to those modules ...
Get WebAssembly in Action now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.