Re: [LAD] GCC Vector extensions

From: Dan Kegel <dank@email-addr-hidden>
Date: Wed Jul 20 2011 - 18:03:48 EEST

On Wed, Jul 20, 2011 at 1:27 AM, Maurizio De Cecco <jmax@email-addr-hidden> wrote:
> On clang/MacOSX i get an impressive improvement in performance,
> around 4x on the operations, even just using the vector types for copying
> data; my impression is that the compiler use some kind of vector
> load/store instruction that properly use the available memory bandwidth, but
> unfortunately i do not know more about the x86 architecture.
>
> On gcc/Linux, (gcc 4.5.2) the same code produce a *slow down* of around
> 2.5x.

It's possible gcc generates code for lowest-common-denominator hardware
by default, and you might need to give some compiler option to get it to use
vector operations. See
http://gcc.gnu.org/onlinedocs/gcc/i386-and-x86_002d64-Options.html
_______________________________________________
Linux-audio-dev mailing list
Linux-audio-dev@email-addr-hidden
http://lists.linuxaudio.org/listinfo/linux-audio-dev
Received on Wed Jul 20 20:15:01 2011

This archive was generated by hypermail 2.1.8 : Wed Jul 20 2011 - 20:15:01 EEST