Le 4 avr. 2015 à 14:34, Marc Lavallée <[email protected]> a écrit :
> Bonjour Stéphane. > > The missing files are now installed. > > There's a new error, only when I use the -emcc option: > > $ faust2webaudioasm -emcc noise.dsp > Compiled with 'emcc' > aborting from js compiler due to exception: unknown vector type <4 x > i8> | undefined aborting from js compiler due to exception: unknown > i8> vector type <4 x i8> | undefined > aborting from js compiler due to exception: unknown vector type <4 x > i8> | undefined Traceback (most recent call last): > File "/usr/share/emscripten/emscripten.py", line 1352, in <module> > _main(environ=os.environ) > File "/usr/share/emscripten/emscripten.py", line 1340, in _main > temp_files.run_and_clean(lambda: main( > File "/usr/share/emscripten/tools/tempfiles.py", line 39, in > run_and_clean return func() > File "/usr/share/emscripten/emscripten.py", line 1348, in <lambda> > DEBUG_CACHE=DEBUG_CACHE, > File "/usr/share/emscripten/emscripten.py", line 1235, in main > jcache=jcache, temp_files=temp_files, DEBUG=DEBUG, > DEBUG_CACHE=DEBUG_CACHE) File "/usr/share/emscripten/emscripten.py", > line 292, in emscript assert len(output) == 2, 'Did not receive > forwarded data in an output - process failed? We only got: ' + > output[0][-3000:] AssertionError: Did not receive forwarded data in an > output - process failed? We only got: _pre_phi_i=$88; } > > I installed emscripten 1.10 from a Ubuntu repository; > should I try to install emscripten from scratch? Seems like an emscripten installation issue, I would suggest to use the SDK here: http://kripken.github.io/emscripten-site/docs/getting_started/downloads.html > > A related question, probably documented somewhere: > What's the use of the -emcc option? Is it for optimization > Is it "better" than the internal asm.js backend? > > Thanks > -- > Marc Two compilations chains can be used : 1) emscripten based, so : Faust DSP ==> C++ class ==> emscripten ==> asm.js 2) using the Faust asm.js backend, so : Faust DSP ==>(asm.js backend) ==> asm.js 2) allow to embed the whole compilation chain in a browser , 1) allows to compile Faust DSP that use external C/C++ dependancies (like some Faust-STK models for instance), and possibly produces better/faster asm.js code since C++ intermediate class can be compile with the -vec option for instance, and LLVM based compilation chain can do optimization we cannot do so easily in the Faust asm.js backend. Stéphane ------------------------------------------------------------------------------ Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ Faudiostream-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/faudiostream-users
