WebAssembly Tutorial - 4 - Memory Accesses

Опубликовано: 15 Октябрь 2024
на канале: Michael Grieco
6,664
123

Here, we introduce ourselves to the virtual memory sandbox that our WebAssembly system uses. We learn how to access the memory for read and writes using an example of summing up elements in an array. Towards the end, we standardize how to do this using C's functions malloc and free to help us with memory management. We also create JavaScript functions to help us quickly encode and decode arrays for the memory accesses.

Timestamps:
• Introduction: 0:00
• Memory description: 1:40
• Passing in an array: 4:53
• Returning an array: 15:46
• Standardizing malloc: 22:14
• Encoding/decoding functions: 31:15

• Website: https://michaelg29.github.io/
• Discord:   / discord  
• This Github Repo: https://github.com/michaelg29/webasse...
• This Playlist:    • WebAssembly Tutorial