Microsoft Visual C vs Gcc on Windows

Discussion of chess software programming and technical issues.

Moderators: bob, hgm, Harvey Williamson

Forum rules
This textbox is used to restore diagrams posted with the [d] tag before the upgrade.
Post Reply
User avatar
silentshark
Posts: 248
Joined: Sat Mar 27, 2010 6:15 pm
Contact:

Microsoft Visual C vs Gcc on Windows

Post by silentshark » Sun Dec 29, 2019 4:17 pm

..just seeing if I can squeeze some extra performance, so I'm taking a look at gcc.

When it comes to performance using these compilers, what are others finding? Also, for gcc what optimisation flags are folks using? For reference, I am using -O3 and -march=native

Regards,
Tom

User avatar
Fabio Gobbato
Posts: 137
Joined: Fri Apr 11, 2014 8:45 am
Full name: Fabio Gobbato
Contact:

Re: Microsoft Visual C vs Gcc on Windows

Post by Fabio Gobbato » Sun Dec 29, 2019 4:23 pm

With gcc you can use also -flto when compiling and when linking.

elcabesa
Posts: 827
Joined: Sun May 23, 2010 11:32 am
Contact:

Re: Microsoft Visual C vs Gcc on Windows

Post by elcabesa » Sun Dec 29, 2019 5:07 pm

I got the best speed with clang

User avatar
silentshark
Posts: 248
Joined: Sat Mar 27, 2010 6:15 pm
Contact:

Re: Microsoft Visual C vs Gcc on Windows

Post by silentshark » Sun Dec 29, 2019 5:22 pm

Fabio Gobbato wrote:
Sun Dec 29, 2019 4:23 pm
With gcc you can use also -flto when compiling and when linking.
Thanks, will take a look

abulmo2
Posts: 216
Joined: Fri Dec 16, 2016 10:04 am
Contact:

Re: Microsoft Visual C vs Gcc on Windows

Post by abulmo2 » Sun Dec 29, 2019 7:16 pm

PGO can also produce faster binary with gcc.
Richard Delorme

Post Reply