Re:Closure Compiler in JavaScript
by icebraining on Tuesday December 06, 2016 @06:51PM
(#13119309)
In this case it doesn't apply, but Emscripten actually compiles LLVM assembly to JavaScript. The way they deal with malloc is by implement it in JS, that is, instead of calling the kernel malloc(), you're just calling a JS function that expands an array of bytes (specifically: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...)
[ Parent
| on HN ]
There are no comments on this comment yet.