Add processor optimization flags to Makefile

Anything you want added or changed in future versions of ZoneMinder? Post here and there's a chance it will get in! Search to make sure it hasn't already been requested.
Post Reply
pchan
Posts: 50
Joined: Thu Jan 15, 2004 9:38 pm

Add processor optimization flags to Makefile

Post 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.
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Re: Add processor optimization flags to Makefile

Post 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,
Post Reply