Csound Csound-dev Csound-tekno Search About

[CSOUND-DEV:3127] Csound -mmmx and -msse

Date2003-10-11 21:36
Fromstevenyi
Subject[CSOUND-DEV:3127] Csound -mmmx and -msse
Hi all,

In case others haven't tried, I experimented with using the -mmmx and
-msse compiler flags for gcc when building csound from source and seemed
to have gained a bit of speed, shaving off about 8 seconds of render
time from a large CSD file. 

[Csound w/o -mmmx or -msse]

158.87user 0.92system 3:22.66elapsed 78%CPU (0avgtext+0avgdata
0maxresident)k
0inputs+0outputs (628major+8128minor)pagefaults 0swaps


[Csound with -mmmx and -msse]

149.32user 0.83system 3:16.62elapsed 76%CPU (0avgtext+0avgdata
0maxresident)k
0inputs+0outputs (636major+8130minor)pagefaults 0swaps



I got these times from using the "time" command.  I'll probably try
running benchmarks again to see if these results were accurate.  There's
also -msse2 and -m3dnow flags for cpu's which support it.  

I don't know enough about what goes one with these flags, but I gave it
a try and found it worth using and thought I'd share this info.  If
anyone knows a reason I shouldn't be using them, please let me know.  =)

Thanks,
steven

p.s. - if you want to give this a try, add the flags above to the CFLAGS
section of the Makefile