Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Assembly in VC6.0 – an (bad) experience!

Author: Dann Corbit

Date: 15:08:51 03/15/01

Go up one level in this thread


If you want to use assembly coding, I recommend the following:
1.  Carefully profile your entire application.  Find the hotspot.
1. a. Look at the algorithm chosen in your hotspot.  Can you improve it?
1. b. If you can improve it, then do so and go back to step 1.
2.  For the hotspot only, generate assembly with your compiler.
3.  Carefully review this assembly as generated and look for ways to improve
that.  It is much easier than doing it from scratch.

If you have a risc chip, then assembly programming becomes even more difficult.

Algorithms are a lot more important than implementations.  A switch from a bad
to a good algorithm can mean speedups of many orders of magnitude.  Assembly
language tweaking will rarely give a speedup of more than a factor of 4.



This page took 0.01 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.