Deep dive into WebAssembly's Basic C ABI, explaining how C programs are represented in WASM. Covers scalar parameter passing via the value stack, pointer handling, aggregate type passing through linear memory, stack frame management with the __stack_pointer global, and return value conventions. Includes annotated WASM code
Table of contents
Preface: the WASM value stack and linear memoryScalar parameters and returnsPointersPassing parameters through linear memoryReturning values through linear memoryAdvanced topicsSort: