Chapter 2. A look inside WebAssembly modules

This chapter covers

  • Descriptions of a WebAssembly module’s known and custom sections

In this chapter, you’ll learn about the different sections of a WebAssembly module and their purposes. I’ll offer more detail as you proceed through this book, but it’s helpful to have a basic understanding of how modules are structured and how the different sections work together.

Some benefits of a module’s different sections and how they’re designed are

  • Efficiency—The binary bytecode can be parsed, validated, and compiled in a single pass.
  • Streaming—Parsing, validation, and compilation can begin before all the data has been downloaded.
  • Parallelization—It’s possible for the parsing, validation, and compilation ...

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.