sdeep27 / wasmTest

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Steps:

  1. npm install

  2. From your emsdk directory, run
    source ./emsdk_env.sh

  3. From your project directory, run:
    emcc -o myAdder.js myAdder.c -s WASM=1 -s ASSERTIONS=1 -s EXPORTED_FUNCTIONS="['_myAdder']"

  4. npm start to start the server

  5. (tested with Chrome version 56.0.2924.87 (64-bit))
    enable webassembly in chrome://flags
    go to localhost:3000

About


Languages

Language:JavaScript 79.0%Language:HTML 15.6%Language:C++ 5.4%