ChessUSA.com TalkChess.com
Hosted by Your Move Chess & Games
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

gcc4.8 outperforming gcc5, gcc6, gcc7
Post new topic    TalkChess.com Forum Index -> Computer Chess Club: Programming and Technical Discussions Flat
View previous topic :: View next topic  
Author Message
Rasmus Althoff



Joined: 30 Aug 2016
Posts: 631

PostPost subject: Re: gcc4.8 outperforming gcc5, gcc6, gcc7    Posted: Tue Nov 28, 2017 6:40 pm Reply to topic Reply with quote

Dann Corbit wrote:
My recommendation is to use both GCC and CLANG with warnings turned up to crazy maximum and examine each and every one. (Expect thousands).

A quick check with CppCheck didn't show much besides scoping, but I'm not sure whether reduced scopes actually help speed. Maybe.

GCC under Linux offers tons of "sanitizer" options with checks during runtime. Slow of course, but good for spotting errors.

Coverity Scan is a nice option because it's free for Open Source projects; I'm also using it.

And btw., the makefile already has "-Wall -Wextra -Wshadow", so the warnings are already cranked up.

However, there is one thing where I'm not too sure. There is no clear compiler directive how to deal with pointer aliasing, and GCC changed that with 4.9 towards (ab)using it for optimisation. It's totally easy to get this in, and unless benchmarking shows a clear gain, I'd always use "-fno-strict-aliasing" for release, and while we're at it, also "-fno-strict-overflow".
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Subject Author Date/Time
gcc4.8 outperforming gcc5, gcc6, gcc7 Andrew Grant Sun Nov 26, 2017 7:08 am
      Re: gcc4.8 outperforming gcc5, gcc6, gcc7 Lucas Braesch Sun Nov 26, 2017 7:32 am
      Re: gcc4.8 outperforming gcc5, gcc6, gcc7 Richard Delorme Sun Nov 26, 2017 8:52 am
            Re: gcc4.8 outperforming gcc5, gcc6, gcc7 Andrew Grant Sun Nov 26, 2017 7:02 pm
      Re: gcc4.8 outperforming gcc5, gcc6, gcc7 Sven Schüle Sun Nov 26, 2017 10:13 am
            Re: gcc4.8 outperforming gcc5, gcc6, gcc7 Martin Sedlak Sun Nov 26, 2017 12:27 pm
            Re: gcc4.8 outperforming gcc5, gcc6, gcc7 Andrew Grant Sun Nov 26, 2017 6:28 pm
                  Re: gcc4.8 outperforming gcc5, gcc6, gcc7 Ronald de Man Sun Nov 26, 2017 6:31 pm
                        Re: gcc4.8 outperforming gcc5, gcc6, gcc7 Andrew Grant Sun Nov 26, 2017 7:15 pm
      Re: gcc4.8 outperforming gcc5, gcc6, gcc7 Mehdi Amini Sun Nov 26, 2017 3:10 pm
            Re: gcc4.8 outperforming gcc5, gcc6, gcc7 Ronald de Man Sun Nov 26, 2017 3:19 pm
                  Re: gcc4.8 outperforming gcc5, gcc6, gcc7 Dennis Sceviour Sun Nov 26, 2017 6:13 pm
                        Re: gcc4.8 outperforming gcc5, gcc6, gcc7 Ronald de Man Sun Nov 26, 2017 6:36 pm
                  Re: gcc4.8 outperforming gcc5, gcc6, gcc7 Rasmus Althoff Sun Nov 26, 2017 9:16 pm
      Re: gcc4.8 outperforming gcc5, gcc6, gcc7 Dann Corbit Tue Nov 28, 2017 3:08 am
            Re: gcc4.8 outperforming gcc5, gcc6, gcc7 Andrew Grant Tue Nov 28, 2017 3:55 pm
                  Re: gcc4.8 outperforming gcc5, gcc6, gcc7 Dann Corbit Tue Nov 28, 2017 4:39 pm
                        Re: gcc4.8 outperforming gcc5, gcc6, gcc7 Andrew Grant Tue Nov 28, 2017 5:14 pm
                              Re: gcc4.8 outperforming gcc5, gcc6, gcc7 Dann Corbit Tue Nov 28, 2017 6:15 pm
                                    Re: gcc4.8 outperforming gcc5, gcc6, gcc7 Andrew Grant Tue Nov 28, 2017 6:28 pm
                                    Re: gcc4.8 outperforming gcc5, gcc6, gcc7 Rasmus Althoff Tue Nov 28, 2017 6:40 pm
                              Re: gcc4.8 outperforming gcc5, gcc6, gcc7 Richard Delorme Tue Nov 28, 2017 6:48 pm
                                    Re: gcc4.8 outperforming gcc5, gcc6, gcc7 Andrew Grant Tue Nov 28, 2017 6:52 pm
                                          Re: gcc4.8 outperforming gcc5, gcc6, gcc7 Richard Delorme Tue Nov 28, 2017 6:58 pm
                                                Re: gcc4.8 outperforming gcc5, gcc6, gcc7 Andrew Grant Tue Nov 28, 2017 7:01 pm
                                                      Re: gcc4.8 outperforming gcc5, gcc6, gcc7 Andrew Grant Tue Nov 28, 2017 7:25 pm
                                    Re: gcc4.8 outperforming gcc5, gcc6, gcc7 Rasmus Althoff Tue Nov 28, 2017 6:58 pm
                                          Re: gcc4.8 outperforming gcc5, gcc6, gcc7 Richard Delorme Tue Nov 28, 2017 7:03 pm
                                                Re: gcc4.8 outperforming gcc5, gcc6, gcc7 Ronald de Man Tue Nov 28, 2017 7:21 pm
                              Re: gcc4.8 outperforming gcc5, gcc6, gcc7 Ronald de Man Tue Nov 28, 2017 7:29 pm
                                    Re: gcc4.8 outperforming gcc5, gcc6, gcc7 Andrew Grant Tue Nov 28, 2017 7:32 pm
                                          Re: gcc4.8 outperforming gcc5, gcc6, gcc7 Rasmus Althoff Tue Nov 28, 2017 7:36 pm
                                          Re: gcc4.8 outperforming gcc5, gcc6, gcc7 Dann Corbit Wed Nov 29, 2017 3:55 pm
                                    Re: gcc4.8 outperforming gcc5, gcc6, gcc7 Andrew Grant Tue Nov 28, 2017 11:21 pm
                                          Re: gcc4.8 outperforming gcc5, gcc6, gcc7 Ronald de Man Wed Nov 29, 2017 12:09 am
Post new topic    TalkChess.com Forum Index -> Computer Chess Club: Programming and Technical Discussions

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Powered by phpBB © 2001, 2005 phpBB Group
Enhanced with Moby Threads