..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
Microsoft Visual C vs Gcc on Windows
Moderators: hgm, Rebel, chrisw
-
- Posts: 217
- Joined: Fri Apr 11, 2014 10:45 am
- Full name: Fabio Gobbato
Re: Microsoft Visual C vs Gcc on Windows
With gcc you can use also -flto when compiling and when linking.
-
- Posts: 855
- Joined: Sun May 23, 2010 1:32 pm
Re: Microsoft Visual C vs Gcc on Windows
I got the best speed with clang
-
- Posts: 327
- Joined: Sat Mar 27, 2010 7:15 pm
Re: Microsoft Visual C vs Gcc on Windows
Thanks, will take a lookFabio Gobbato wrote: ↑Sun Dec 29, 2019 5:23 pm With gcc you can use also -flto when compiling and when linking.
-
- Posts: 433
- Joined: Fri Dec 16, 2016 11:04 am
- Location: France
- Full name: Richard Delorme
Re: Microsoft Visual C vs Gcc on Windows
PGO can also produce faster binary with gcc.
Richard Delorme