© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2022
S. M. JainWebAssembly for Cloudhttps://doi.org/10.1007/978-1-4842-7496-5_2

2. WebAssembly Module Internals: Sections and Memory Model

Shashank Mohan Jain1  
(1)
Bangalore, India
 

This chapter explains what constitutes a WebAssembly module and shows you what its memory model looks like. It discusses how the different sections of the WebAssembly module are structured and the significance of each section.

Figure 2-1 shows the structure of a Wasm file.
../images/520626_1_En_2_Chapter/520626_1_En_2_Fig1_HTML.jpg
Figure 2-1

Structure of a WebAssembly file

The WebAssembly header is an 8-byte filled with the magic number \0asm in ...

Get WebAssembly for Cloud: A Basic Guide for Wasm-Based Cloud Apps 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.