Part 2. Working with modules

Now that you know what WebAssembly is, and have been introduced to the Emscripten toolkit, this part of the book will guide you through creating WebAssembly modules that your JavaScript code can interact with and vice versa.

In chapter 4, you’ll learn how to take an existing C or C++ codebase and adjust it so that it can also be compiled into a WebAssembly module. You’ll learn how to interact with your new module from your web page’s JavaScript.

Chapter 5 teaches you how to adjust the code from chapter 4 so that the WebAssembly module can call into your web page’s JavaScript.

Chapter 6 takes calling into the JavaScript code of your web page to another level by passing JavaScript function pointers to the WebAssembly ...

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.