WebAssembly Tutorial - 2 - Wrapping Functions with ccall and cwrap

Опубликовано: 06 Август 2026
на канале: Michael Grieco
19,225
336

In the second installment to this series, we look at basic function calls. We learn how to export functions from our C code to webassembly so they can be called in JavaScript. We look at how to use the two helper methods in JavaScript, ccall() and cwrap(). We examine the possible uses of these methods along with some of the drawbacks.

Timestamps:
• Redoing "Hello, world!": 0:00
• Wrapping Motivations: 1:20
• EMSCRIPTEN_KEEPALIVE: 2:40
• ccall: 3:30
• cwrap: 9:30

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