Page 1 of 1

Add processor optimization flags to Makefile

Posted: Wed Feb 18, 2004 6:01 pm
by pchan
It seems it would be quite easy to add a flag to the compiler option which would allow for CPU specific optimizations. The configure script from MPlayer (http://www.mplayerhq.hu/homepage/design6/dload.html) has a extensive check for CPU specific optimizations.

I've actually just edited the src/Makefile to add -O3 and -march=pentium3 to the CCOPT line. I don't know how to quantify the performance gain, but it sure "seems" faster (I know programmers just love "It seems faster" :)

Also, since I haven't looked through all the code, I'm not sure if -malign_double would cause problems or not. This flag historically gives the most performance gain.

Re: Add processor optimization flags to Makefile

Posted: Wed Feb 18, 2004 9:36 pm
by zoneminder
Hi,

I would be interested to see how much faster any of these optimisations go. I've used -O3 at various times and not noticed any difference.

Having said that the next version will be a lot quicker in most areas anyway but I'd be keen to hear any ideas for further improvements.

Phil,