Differences with the WebAssembly object

We covered the browser's WebAssembly object and the corresponding loading procedures in Chapter 5, Creating and Loading a WebAssembly Module. WebAssembly's JavaScript and Web APIs define the objects and methods available in the browser's window.WebAssembly object. Emscripten's Module can be seen as a combination of WebAssembly's Module and Instance objects, which are present in the result object that WebAssembly's instantiation function returns. By passing the -s MODULARIZE=1 flag to the emcc command, we're able to replicate WebAssembly's instantiation method (to a degree). We will examine the differences between Emscripten's Module and the browser's WebAssembly object in greater detail as we evaluate the methods of integrating JavaScript and C/C++ in the upcoming sections.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset