Emscripten fastcomp backend interesting for Faust

42 views
Skip to first unread message

Stéphane Letz

unread,
Mar 11, 2014, 11:50:00 AM3/11/14
to emscripte...@googlegroups.com
I've recently read the thread on LLVM list about Emscripten fastcomp backend and I am very interested by it. 

We are working here on a DSL language for DSP audio processing called Faust (see : http://faust.grame.fr). The Faust compiler currently allows to generate different target languages like C/C++, LLVM IR, Java or JavaScript.

We did some test connecting the Faust ==> JavaScript chain in the contexts of the WebAudio API  (see : http://faust.grame.fr/index.php/component/content/article/7-news/73-faust-web-art), so that we can use Faust to automatically generate fully working JavaScript nodes for the WebAudio API. Obviously the speed is not so great, so we are very interest with the asm.js model.

Since we also already have a Faust DSP ==> LLVM IR backend, I was wondering if the Emscripten fast comp backend would allow the following chain:

Faust DSP ==> LLVM IR  (… some IR==> IR optimisation passes…) ==> Emscripten fast comp ==> asm.js

Would this work?

Thanks.

Stéphane Letz

Alon Zakai

unread,
Mar 11, 2014, 2:25:08 PM3/11/14
to emscripte...@googlegroups.com
Yes, that should work, unless it happens to use a feature of LLVM IR that is not supported. The backend should support almost anything that clang will emit into LLVM IR, minus things like threads.

- Alon



--
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 emscripten-disc...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Stéphane Letz

unread,
Mar 11, 2014, 2:36:30 PM3/11/14
to emscripte...@googlegroups.com
So another argument to have "fastcomp" backend finally be part of standard LLVM tree and distribution….

Stephane
> You received this message because you are subscribed to a topic in the Google Groups "emscripten-discuss" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/topic/emscripten-discuss/SVUxVAW5pi8/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to emscripten-disc...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages