Summary

In this chapter, we covered the compilation and loading processes for modules that utilize the Emscripten glue code alongside the Wasm modules. By utilizing some of Emscripten's built-in features, such as ported libraries and helper methods, we were able to demonstrate the advantages Emscripten offers. We discussed some of the compiler flags that you can pass to the emcc command and how that will affect your output. By utilizing VS Code's Tasks feature, we were able to set up a build command to expedite the build process going forward. We also reviewed the process for compiling and loading a Wasm module without the glue code. We wrote some reusable JavaScript code to load the module as well as code to interact with our compiled Wasm module.

In Chapter 6, Interacting with JavaScript and Debugging, we're going to cover interacting with JavaScript and debugging techniques in the browser. 

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

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