Learning about Performance Programming in C

Programming Topics (Computer Chess) and technical aspects as test techniques, book building, program tuning etc

Moderator: Andres Valverde

Learning about Performance Programming in C

Postby Pradu » 14 Jul 2006, 22:36

I've started rewritng my chess engine and I would like to know if anyone can direct me to some good resources on the web or any good books about creating high performance programs in C.

After a good time searching on google for Performance Programming in C, I haven't found anything decisive.
User avatar
Pradu
 
Posts: 343
Joined: 12 Jan 2005, 19:17
Location: Chandler, Arizona, USA

Re: Learning about Performance Programming in C

Postby Dann Corbit » 15 Jul 2006, 01:25

Pradu wrote:I've started rewritng my chess engine and I would like to know if anyone can direct me to some good resources on the web or any good books about creating high performance programs in C.

After a good time searching on google for Performance Programming in C, I haven't found anything decisive.


Dominatingly, by far, the best way to improve performance is to improve the algorithm. The best way to improve the algorithm is to analyze it for O(f(n)) performance and then improve that metric.

This link is well above average:
http://www.azillionmonkeys.com/qed/optimize.html

Mike Lee has a nice chapter on optimization in the book "C Unleashed". You can probably find a copy at your local library.
Dann Corbit
 

Re: Learning about Performance Programming in C

Postby Dann Corbit » 15 Jul 2006, 01:33

This is pretty good (see also the links at the bottom):
http://en.wikipedia.org/wiki/Software_optimization
Dann Corbit
 

Re: Learning about Performance Programming in C

Postby Pradu » 15 Jul 2006, 16:07

Thanks a bunch!

I see you wrote a section in the C Unleashed book as well. :mrgreen:


Part II - Data Organization
13 Rapid Sorting Techniques (Dann Corbit)
User avatar
Pradu
 
Posts: 343
Joined: 12 Jan 2005, 19:17
Location: Chandler, Arizona, USA

Re: Learning about Performance Programming in C

Postby Pradu » 16 Jul 2006, 20:11

I've found another great resource if anyone is interested
http://www.amd.com/us-en/assets/content ... /25112.PDF
User avatar
Pradu
 
Posts: 343
Joined: 12 Jan 2005, 19:17
Location: Chandler, Arizona, USA

Re: Learning about Performance Programming in C

Postby Gerd Isenberg » 17 Jul 2006, 08:33

Yes AMD64-optimization manual is a great ressource.
As well as Agner Fog's updated manuals: http://www.agner.org/optimize/#manuals
Gerd Isenberg
 
Posts: 285
Joined: 31 Jan 2005, 20:31
Location: Hattingen, Germany


Return to Programming and Technical Discussions

Who is online

Users browsing this forum: No registered users and 40 guests