Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Intel C++ 7.0 compiler questions...

Author: John Lowe

Date: 07:29:54 12/22/02

Go up one level in this thread


On December 22, 2002 at 08:42:23, Joel wrote:

>Hey all,

Hi Joel,

I write chess programs in assembler. I do it for fun and I compete well - at my
level. You could teach me in assembly language - no-one else ever has!

Have quick a look at my Christmas chat with Uri..... - you will appreciate the
reference to "shl ebx,4" - but very few of the chess programmers will.

The "One size fits all" philosophy of programming chess in "C etc" leaves
individuality out in the cold. Optimisation - I submit - is an assembly
programmers field.

There is an awful lot of dogma in chess programming - most of it (I suspect) a
function of the fear of chess players of appearing wanting as programmers. For
"Can't be done" read "The compiler won't understand what I want".

More as a plea than advice:-

Either teach your skills as a programmer or program chess.......but please don't
help to breed the next generation of chess programmers who still need to be
asked "What do you want?".

Sincerest Regards

John  (One among "all")


>Was reading some of the previous threads where the general consensus seemed to
>be that the Intel C++ 7.0 compiler did a much better job at optimising than the
>VC 6.0 Sp4 compiler did.
>
>My compiler knowledge is very limited - I have written a C compiler before (uni
>assignment), but optimisation wasn't an issue. I have no real idea how an
>optimising compiler goes about it's work.
>
>For the record I have an Athlon XP 2100+, and my engine is bitboard based.
>
>Having said that, I installed the Intel compiler, and tried compiling my latest
>version of Bodo, and then ran my dodgy little speed benchmark on it. It was
>actually slower than the VC 6.0 compiler, though I have reason to suspect my
>incompetence is the issue, largely due to statements like:
>
>"Did you use the intel C++ 7.0? Of course not.  Did you do the profile-feedback
>optimizations?  Probably not."
>
>What I am asking is how do I do this profile-feedback optimisations, and or any
>other optimisations which you guys do?
>
>What would be particularly helpful is other people could give me the compiler
>command line parameters they use to generate fast code.
>
>I really need to buy a book on optimising compilers so I understand what the
>hell is happening here. :|
>
>Any help greatly appreciated,
>
>Joel Veness



This page took 0 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.