This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Faster compilation speed


On Saturday, August 10, 2002, at 05:48 PM, Aaron Lehmann wrote:

On Fri, Aug 09, 2002 at 12:17:32PM -0700, Mike Stump wrote:
I'd like to introduce lots of various changes to improve compiler
speed.
Just adding my two cents to the discussion - I saw many ideas
presented in this thread that look promising, but one thing that I
didn't see mentioned was gcc's extensive sanity checking. There are
many tests which will produce an internal compiler error when merited.
This is great tool for debugging, but most of these errors should be
impossible to reach. Does anyone know how much overhead this sanity
checking in general causes, and whether there are any sanity checks
that are unusually expensive and should be considered for removal?
Many compilers conditionalize these checks with #if DEBUG or the like.
I hesitate to recommend this, as bugs that show up in the non-checked
version of the compiler can be baffling, but it's worth mentioning.

Profile-based code straightening is a big win on code like this, but that
doesn't get rid of the test, of course.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]