2018年1月28日 星期日

WebAssembly

Download

$ git clone https://github.com/juj/emsdk.git
$ cd emsdk
$ ./emsdk install latest
$ ./emsdk activate latest

source
$ source ./emsdk_env.sh --build=Release

compile
emcc hello.c -s WASM=1 -o hello.html

$mv hello.html /var/www/html/.

open it in your browser.