Author: Pete Galati
Date: 08:58:42 04/17/00
Go up one level in this thread
On April 17, 2000 at 09:59:05, Georg v. Zimmermann wrote:
>Hi,
>
>I have no clue about some speed issues. I do not know how good most compilers
>are. For example
>
>1.)
>
>if (A == B) { result = 1; } else { result = 0; }
>
>and
>
>result = 0;
>if (A == B) { result = 1; }
>
>
>does accomplish exactly the same. But in the first way the program has to set
>result = X only once, while in the second way it has to set result = X twice
>sometimes. Do compiler detect this ? Or is there a speed difference ?
>
>2.)
>
>I use integer values as flags, and use 1 = true and 0 = false. Would I get a
>speedup if I'd use a special boolean type ?
>
>3.)
>
>Do lots of global variables slow a program down ? Is access to private variables
>faster ?
>
>===
>
>Another thing: how much faster is the Microsoft C++ Compiler compared to the
>Cygnus Compiler ? Does it make a difference ?
>
>Ok, this is probably asking too much. I'm right now playing around ( its heavily
>modified by now, but structure is still the same. Only the code is practically
>unreadable for anyone but me now :-( ) with this great program here:
>
>http://www.wpi.edu/~bdean/deepbug.html
>
>Since I know absolutely nothing about compilers and the libraries needed for
>linking the program the error messages I get when trying to compile the program
>under MSVC++ instead of the Cygnus compiler sound like Chinese to me.
>
>If anyone would be so kind to take a look at Bens Code and tell me how hard it
>would be to port it to make it with MSVC++ ?
>
>If it would take too long I will forget the idea, if its simple any help on
>doing that would be greatly appreciated. Remember, Compilers are a black box to
>me :-)
>
>Best regards,
>
>Georg v. Zimmermann
For those of us who don't know Bughouse Chess (me) can you provide a link to
that varaition page please? I like the animated gif at the top of your page,
good fast loading web page Georg.
Pete
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.