November 2019
Intermediate to advanced
448 pages
15h 6m
English
As mentioned in chapter 11, the code execution in WebAssembly is defined in terms of a stack machine in which instructions push or pop a certain number of values onto and off the stack.
When a function is first called, the stack for that function is empty. The WebAssembly framework will validate the stack when the function ends to ensure that, if the function is returning an i32 value, for example, the last item on the stack when the function returns is an i32 value. If the function doesn’t return anything, then the stack must be empty when the function returns. ...
Read now
Unlock full access