Compile C Code into WebAssembly

InstructorGuy Bedford

Share this video with your friends

Send Tweet

We use the C language instead of pure WAST to create a square root function using WASM Fiddle (https://wasdk.github.io/WasmFiddle//). We show how to run the WebAssembly in WASM Fiddle, then download and run it in the browser using a helper function to load the WebAssembly.

WASM Fiddle: https://wasdk.github.io/WasmFiddle/?t96rp

Demo Repo: https://github.com/guybedford/wasm-intro

Gabriel Crispino
~ 5 years ago

How is this different from compiling with emcc?