Adding loop primitives/optimizations (was Making Set/Dictionaryetc. loops more robust)

Bert Freudenberg bert at impara.de
Thu Dec 2 11:42:18 UTC 2004


Am 02.12.2004 um 08:57 schrieb John M McIntosh:

>
> On Dec 1, 2004, at 10:44 PM, John M McIntosh wrote:
>> Over the weekend I'll take a peek and generate some uptodate numbers 
>> based on some of your simple examples here.
>>
>>
>> http://developer.apple.com/hardware/ve/vector_libraries.html
>
> A quick check with
> f :=  FloatArray new: 1000000 withAll: 1.0  .
> g := FloatArray new: 1000000 withAll: 2.0  .
> [100 timesRepeat: [f+=g]] timeToRun.
>
> using vadd(rcvrPtr,1,argPtr,1,rcvrPtr,1,length);  //Is this legal?
>
> takes about 1765ms, versus  3802ms

Has anybody looked into gcc's vector support? IIUC this is in 3.4, if 
not even earlier, and there will be auto-vecorization in 4.0 (the 
version following 3.4).

http://gcc.gnu.org/onlinedocs/gcc/Vector-Extensions.html

http://ds9a.nl/gcc-simd/

http://gcc.gnu.org/projects/tree-ssa/vectorization.html


- Bert -




More information about the Squeak-dev mailing list