Automatic vectorization in Faust

Abstract : Faust is a Block-Diagram language for sound signal processing and synthesis. It implements a new algebraic representation of block-diagrams and adopts a functional model of semantics instead of a data flow model. Based on these elements, a compiler able to translate DSP block diagram specification into C code is briefly presented. The code produced proves to be efficient and can compete with a hand written code. The optimization process is even pushed further: the C code produced can be automatically vectorized to address Altivec extension for PowerPC (instruction-motorola) and SSE and SSE2 extensions for Intel architecture (instruction-intel). A method is proposed to determine whether or not a Faust expression can be vectorized by crossing a type information (synthesized during an upward run-around in the syntactic tree to be compiled) and a contextual information (inherited during a downward run-around in the syntactic tree). Thanks to this method, we are able to find expressions that can be vectorized inside recursive expressions that are not supposed to be vectorizable. The quality of the code produced by Faust is evaluated. On one hand, scalar code produced by Faust is compared to vector code produced by Faust, on the other hand, scalar and vector code are compared to code optimized by hand. In the end, we briefly present code transformations to vectorize the expressions classed as non-vectorizable by the previous method so that even better performances can be achieved in the future.
Document type :
Conference papers
Complete list of metadatas
Contributor : Dominique Fober <>
Submitted on : Tuesday, June 18, 2019 - 2:16:03 PM
Last modification on : Wednesday, June 19, 2019 - 11:13:49 AM


Files produced by the author(s)


  • HAL Id : hal-02158949, version 1


Nicolas Scaringella, Yann Orlarey, Stéphane Letz, Dominique Fober. Automatic vectorization in Faust. Journées d'Informatique Musicale, 2003, Montbeliard, France. ⟨hal-02158949⟩



Record views


Files downloads