Forum

Of Computer Chess

 
    Welcome to Chess2U - The Ultimate Computer Chess Forum!
    If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post and use all the
    features of the Chess2U forums. To start viewing messages, select the forum that you want to visit from the selection below.

Compiler Options 5 5 2

View previous topic View next topic Go down  Message [Page 1 of 1]

Post on Mon Feb 13, 2012 7:18 pm by Tennison

Hi everybody,

I'm trying to compile some src with Mingw64.

But the compile is about 10-15% slower than the ones I found here.

What can I change ?

Here is the options I use (not always all in the same time):

-Wcast-qual
-fno-exceptions
-fno-rtti
-Wextra
-Wshadow
-DNDEBUG
-DIS_64BIT
-DUSE_BSFQ
-DUSE_POPCNT
-flto
-pipe
-Wall
-mtune=amdfam10
-march=amdfam10
-w
-Ofast
-m64
-s

and

-DNO_PREFETCH
or
-msse


Which ones have I to stop using ?

Which ones have I to add ?

Thanks a lot

Post on Mon Feb 13, 2012 8:39 pm by Andres

Software optimization resources
http://www.agner.org/optimize/

I hope this helps you and answers your questions.

Post on Mon Feb 13, 2012 8:43 pm by Tennison

Thanks Andres

I 'll take a look and try this tomorrow ;-)

Post on Tue Feb 14, 2012 8:30 am by Tennison

Here is the flags I finally use :

-ffunction-sections
-fomit-frame-pointer
-fno-exceptions
-fno-rtti
-flto
-w
-Ofast
-m64
-s

With these my compile seems to have nearly the same speed as JA one (+/- 1%) on my computers.

I have again to test some other flags ...

Post on Tue Feb 14, 2012 8:35 am by Steve.R

Good! Can we expect a new compile soon? wink

Post on Tue Feb 14, 2012 9:17 am by Tennison

We need to wait a little ... ;-)

I try to make some changes on toga 1.4 beta 5c

In fact it was difficult for me to compare my compile with original one if it was so slow... ;-)

Now I have a good speed I can really test correctly the settings and code optimization ...

I'm trying to make a clean and easily readable code first ... [it will be useful for programming beginners (like me) I hope]
(It's very long ... lol)

In the future, my goal is to make my own engine (from A to Z) ... Maybe a dream ... ;-)

Post on Tue Feb 14, 2012 10:12 am by wasp90210

are you compiling in Windows or other. I am trying to compile Stockfish in Windows 7 through code blocks with the same compiler as you but have similar problems.

View previous topic View next topic Back to top  Message [Page 1 of 1]

Permissions in this forum:
You cannot reply to topics in this forum