-
Compile C to WASM
emcc wasm/counter.c -O1 -o wasm/counter.wasm -s WASM=1 -s SIDE_MODULE=1
-
Run
npm install
-
Run
webpack
to build your code (insideindex.js
) and wasm file, usingwasm-loader
. See webpack.config.js for details. -
Open
index.html
in browser and play around
-
Notifications
You must be signed in to change notification settings - Fork 0
sericaia/wasm-test
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Working example using WebAssembly
Topics
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published