Chapter 3. Creating your first WebAssembly module
This chapter covers
- An overview of the Emscripten toolkit
- Creating a module using Emscripten and Emscripten’s HTML template
- Creating a module with Emscripten JavaScript plumbing code and letting this code handle loading the module
- Creating a module without the Emscripten JavaScript plumbing code and then loading the module yourself
- Feature detection to test if WebAssembly is available
In this chapter, you’ll write some C code and then use the Emscripten toolkit to compile it into a WebAssembly module. This will let us look at three approaches we can use with the toolkit to create WebAssembly modules. Just to give you an idea of what’s possible using the toolkit, some of the items that have ...
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.