Inserting ASM.JS code into vanilla javascript -
just simple question, can include section of asm.js code in set of normal javascript, function or otherwise, similar how can set asm code c programme areas need special optimization?
yes. utilize
"use asm";
prologue directive on top of function block (i.e. function or file) asm. total example:
function myasmmodule() { "use asm"; // module body }
see http://asmjs.org/spec/latest/#introduction more information
javascript asm.js
No comments:
Post a Comment