- emcc does the following compilations chain :

Faust  DSP ==> C++ output ==> (emcc) ==> JS, so it uses the emcripten (= emcc) 
compiler to compile C++ in JS

- without -emcc you'll get:

Faust DSP ==> (internal asm.js backend) ===> JS

Emcc is mandatory if your DSP has some external functions ou C/C++ 
dependencies. Il may also produce faster JS code, since LLVM is used and can 
possibly optimize better compared to the code our own "asm.js" backed can 
produce.

It your DSP file in standalone, then you don't need "-emcc". And you have to 
decide what is important for you: code size compared to possible faster code….. 

Stéphane


Le 3 juin 2015 à 01:47, Marc Lavallée <[email protected]> a écrit :

> Hello Faust users (and developers).
> 
> I'm using faust2asmjs to compile javascript audio processors for the
> web audio api. For a small processor, when using faust2asmjs without
> the -emcc option, the file size is 20K, and the code is human readable.
> Whit the -emcc option, the file size jump to 620K, and the code is
> unreadable. So I wonder why I would use the -emcc option...
> 
> What's the use of the -emcc option? Does it produce better/faster code?
> 
> --
> Marc
> 
> ------------------------------------------------------------------------------
> _______________________________________________
> Faudiostream-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/faudiostream-users


------------------------------------------------------------------------------
_______________________________________________
Faudiostream-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/faudiostream-users

Reply via email to