HTML JS

GET STARTED WITH WEB ASSEMBLY

INSTALL PYTHON & EMSCRIPTEN

01

git clone https://github.com/emscripten-core/emsdk.git

cd WHERE/YOU/INSTALLED/EMSCRIPTEN  emsdk update emsdk install latest  emsdk activate latest emsdk_env.bat emcmdprompt.bat

TOOLCHAIN (WINDOWS)

02

cd WHERE/YOU/INSTALLED/EMSCRIPTEN  ./emsdk install latest ./emsdk activate latest source ./emsdk_env.sh

TOOLCHAIN (LINUX/MAC)

03

#include <stdio.h> int main(int argc, char ** argv) {   printf("Hello world!\n"); }

HELLO WORLD IN C

04

COMPILE emcc hello-world.c -s WASM=1 -o hello-world.html

COMPILE & LAUNCH

05

LAUNCH IN BROWSER http://site.com/hello-world.html