This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [v3] support for disabling concept checking
- To: Benjamin Kosnik <bkoz at redhat dot com>
- Subject: Re: [v3] support for disabling concept checking
- From: scott snyder <snyder at fnal dot gov>
- Date: 23 Mar 2001 20:32:20 -0600
- Cc: libstdc++ at gcc dot gnu dot org
- References: <200103232000.f2NK0Qn29285@fillmore.constant.com>
Benjamin Kosnik <bkoz@redhat.com> writes:
> The current concept checking code is buggy. This doesn't turn it off,
> but it does allow one to turn it off and have the library still build
> and link properly.
Another thing i've been meaning to mention about concept checks: they
can add significant overhead to the size of the generated debugging
information -- so much so that i disabled concept checks for the builds
i do some time ago.
Here are the results of a test i did a little while ago. This tabluates the
object file size for a STL-intensive source file with various compiler
options:
(no debug info) : 1172252
-g : 5984348
-g -D_STL_NO_CONCEPT_CHECKS : 4112244
-g -gdwarf-2 : 6039964
-g -gdwarf-2 -D_STL_NO_CONCEPT_CHECKS : 4023208
-g -gdwarf-2 -feliminate-dwarf2-dups : 7391764
-g -gdwarf-2 -feliminate-dwarf2-dups -D_STL_NO_CONCEPT_CHECKS : 5271560
As you can see, having the concept checks on increases the final object file
size by about 50%. I like the idea of concept checks, but not enough
to lose hundreds of megabytes of disk space to them.
sss