@sarmad:
you write
above the asm.js code. If the browser supports it, it will treat the following block of code as asm.js and will try to compile it. if the browser does not support asm.js, the statement will do nothing, but the code will still run (albeit slowly), because it's still javascript after all. Emscripten (the main reason asm.js was invented) uses static typed arrays as memory for the c/c++ program, so i guess they do their own garbage collection inside that array which the browser gives them.
you write
"use asm";
Comment