asm-js / validator

A reference validator for asm.js.
Apache License 2.0
1.78k stars 154 forks source link

FFI example #87

Closed wtchoi closed 9 years ago

wtchoi commented 10 years ago

Could you provide an example of using FFI?

Basically, I want to write some computationally intensive programs with a very simple GUI using asm.js. (For example, 2 dimensional Barnes-Hut algorithm with GUI showing useful numbers and the pause/resume button)

kripken commented 10 years ago

This might be helpful, this blogpost explains how to read emscripten output, and gives an example of an ffi call (puts()), http://mozakai.blogspot.com/2014/06/looking-through-emscripten-output.html

wtchoi commented 10 years ago

Thanks. I'll first try the example and comeback with more detailed questions.