[cfe-dev] Clang compiling

Csaba Raduly rcsaba at gmail.com
Tue Oct 8 00:45:46 PDT 2013


Hi Jean-Paul,

On Mon, Oct 7, 2013 at 4:27 PM, Jean-Paul  wrote:
(snip)
> I don't know anything about compiling..my hobby is testing Chess engines ,do
> this more then
> 20 years now. i get from different programmers there new/beta engines to
> test..
>
> I have installed some programs and with a guide i can make compiles in
> windows using this
> command line: make profile-build ARCH=x86-64-modern COMP=mingw
>
> So i get Stockfish (a chess engine) source..and it makes a Stockfish.exe
> file and i can use it,test it
> out and so on..with every compile i check the speed..it has a build-in
> Benchmark..just typing bench
> and i get a number nodes/sec. that shows me his speed.
> In Chess is very important to get highest speed!
>
> On a chess forum i read about compiling with Clang..and on the Clang website
> i read that compiling
> with Clang can be 3 times faster then GCC !!
> So that would be amazing for Chess calculatings! even i get a gain from x1.5


Note that Clang's speed advantage is traditionally during compiling.
This means that you get a Stockfish executable sooner, not necessarily
that Stockfish runs faster :)


> Now is my request to someone who can make a Clang compile for me

You should direct these questions to the support forum of Stockfish,
e.g. http://stockfishchess.org/support/

Stockfish has support for clang. If you type "make help", you'll see:
Supported compilers:

gcc                     > Gnu compiler (default)
mingw                   > Gnu compiler with MinGW under Windows
clang                   > LLVM Clang compiler
icc                     > Intel compiler

To build with clang, you could run

make profile-build ARCH=x86-64-modern COMP=clang

The fact that your example above was with COMP=mingw suggests that
you're running Windows. To make the above run, you'll have to put the
clang executables in the path.

Csaba
-- 
GCS a+ e++ d- C++ ULS$ L+$ !E- W++ P+++$ w++$ tv+ b++ DI D++ 5++
The Tao of math: The numbers you can count are not the real numbers.
Life is complex, with real and imaginary parts.
"Ok, it boots. Which means it must be bug-free and perfect. " -- Linus Torvalds
"People disagree with me. I just ignore them." -- Linus Torvalds



More information about the cfe-dev mailing list