Microsoft Visual C vs Gcc on Windows

Discussion of chess software programming and technical issues.

Moderators: hgm, Rebel, chrisw

User avatar
silentshark
Posts: 327
Joined: Sat Mar 27, 2010 7:15 pm

Microsoft Visual C vs Gcc on Windows

Post by silentshark »

..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: 217
Joined: Fri Apr 11, 2014 10:45 am
Full name: Fabio Gobbato

Re: Microsoft Visual C vs Gcc on Windows

Post by Fabio Gobbato »

With gcc you can use also -flto when compiling and when linking.
elcabesa
Posts: 855
Joined: Sun May 23, 2010 1:32 pm

Re: Microsoft Visual C vs Gcc on Windows

Post by elcabesa »

I got the best speed with clang
User avatar
silentshark
Posts: 327
Joined: Sat Mar 27, 2010 7:15 pm

Re: Microsoft Visual C vs Gcc on Windows

Post by silentshark »

Fabio Gobbato wrote: Sun Dec 29, 2019 5:23 pm With gcc you can use also -flto when compiling and when linking.
Thanks, will take a look
abulmo2
Posts: 433
Joined: Fri Dec 16, 2016 11:04 am
Location: France
Full name: Richard Delorme

Re: Microsoft Visual C vs Gcc on Windows

Post by abulmo2 »

PGO can also produce faster binary with gcc.
Richard Delorme