Re: [eigen] Compiling Eigen to the Web

[ Thread Index | Date Index | More lists.tuxfamily.org/eigen Archives ]


Haha, yes.

Here is a version compiled with -g. In it, search for _solve. It is still very hard to follow for a human, but at least the formatting is more sane.

http://people.mozilla.org/~bjacob/bezier/solve-with-debug-info.js

By the way, the subset of JS that Emscripten targets is described here:

http://asmjs.org/spec/latest/

It relies on various aspects of JS to give as much type information as possible, and it allocates all the heap blocks in a big Typed Array to implement malloc and avoid garbage collection overhead.

Benoit


2013/11/7 Gael Guennebaud <gael.guennebaud@xxxxxxxxx>

On Thu, Nov 7, 2013 at 2:48 PM, Benoit Jacob <jacob.benoit.1@xxxxxxxxx> wrote:
This yields a JS file which you can see here:

http://people.mozilla.org/~bjacob/bezier/solve.js

(If you want it to be more readable

indeed, I found x86 asm more readable than emscripten's asm ;)

gael




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/