NickLarsen / web-assembly-intro

MIT License
4 stars 1 forks source link

WASM not working #1

Open corelus opened 6 years ago

corelus commented 6 years ago

hi, am a beginner in Webassembly but as i tried to take a look in your code and your exemples & test'em i found out that WASM is not working properly in opposition to ASM in the gaussian-blur example. In the Console as well as in the pop alert() i got a kind of "the 'wa' is not available"

NickLarsen commented 6 years ago

Hello @corelus! Thanks for the message and I'm sorry you're having trouble. This example was put together a couple of years ago when WASM was still in a developmental state. There is now a full release out and you should be able to fix this by recompiling the original C code with the latest version of Emscripten.

There is an up to date tutorial for how to do that here: https://developer.mozilla.org/en-US/docs/WebAssembly/C_to_wasm

NickLarsen commented 6 years ago

@corelus One thing you might want to try is WasmFiddle which claims to compile wasm from C code directly in your browser.