Small Tutorial on Emscripten

/home/arun/emsdk/upstream/emscripten/emcc -v

/*

Copyright 2011 The Emscripten Authors. All rights reserved.

Emscripten is available under two separate licenses, the MIT license and the

University of Illinois/NCSA Open Source License. Both these licenses can be

found in the LICENSE file. */

#include <stdio.h>

int main() {

printf("hello, world!\n");

return 0;

}

/home/arun/emsdk/upstream/emscripten/emcc hello.c

node a.out.js

Creating html:

home/arun/emsdk/upstream/emscripten/emcc hello.c -o hello.html

/home/arun/emsdk/upstream/emscripten/emrun hello.html