This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Standard scheme for maintainer-only debugging code?
- From: Nathanael Nerode <neroden at twcny dot rr dot com>
- To: jsm28 at cam dot ac dot uk, gcc at gcc dot gnu dot org
- Date: Tue, 10 Jun 2003 18:41:05 -0400
- Subject: Re: Standard scheme for maintainer-only debugging code?
Joseph S. Myers asked:
>Why does this code need to be compiled out?
Speed. Sometimes (quite often actually) such code is in deeply inner
loops. For one reason or another, one instance of such code might
trigger hundreds of times per compilation. Combine that with hundreds
of such instances, and you *want* this out of release versions of the
compiler.
You really want it to be compiled out *unless* you're doing a special
maintainer debug build.
--Nathanael