I touched on this in another matter . From the C ++ stack, there are actually 3 places where values can end:
- On the execution stack (each operation code pushes and returns values, so
add2 pops up and then presses 1). - How local.
- In
Memory.
, 1. 2. , 3. , WebAssembly, , ABI . Emscripten , 4, , . 4, ABI, .
: , , malloc , . .
/ ( , , , ). WebAssembly , ( ). " " , WebAssembly.Memory, , . , , WebAssembly, WebAssembly.Memory.
, , 1. 2. , ++ WebAssembly, ++ .