Add processor optimization flags to Makefile
Posted: Wed Feb 18, 2004 6:01 pm
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.
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.