In principle yes, you can generate asm.js on the fly, and if you have "use asm" in the body then the browser has the option to try to optimize it using the asm.js type system (nothing special about asm.js here, of course). Do you see a warning or error in the firefox console, saying it succeeded or did not succeed?
- Alon On Mon, Jun 9, 2014 at 9:34 AM, Stéphane Letz <[email protected]> wrote: > Hi, > > We have successfully ported our Faust (audio DSP) compiler to JS using > emscripten. We then added an "asm.js" backend in the Faust compiler so that > we can do: > > DSP source ==> Faust (in JS) ==> asm.js ==> evaluate and run the "asm.js" > DSP in the web (using the Web Audio API). > > This basically works, but the "asm.js" generated code does not seems to be > compiled in asm.js. It runs quite slow so I guess as regular JS code. Maybe > the generated code is still not correct (typing issues probably….) but > before going further, is dynamically compiling and evaluating asm.js code > actually possible? > > Thanks. > > Stéphane Letz > > -- > You received this message because you are subscribed to the Google Groups > "emscripten-discuss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "emscripten-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
