[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: _GLIBCXX_CONCEPT_CHECKS usage
From: |
mathieu |
Subject: |
Re: _GLIBCXX_CONCEPT_CHECKS usage |
Date: |
Thu, 13 Sep 2007 13:03:45 -0000 |
User-agent: |
G2/1.0 |
On Sep 10, 9:42 pm, Pedro Lamarão <pedro.lama...@gmail.com> wrote:
> On Sep 7, 12:50 pm, mathieu <mathieu.malate...@gmail.com> wrote:
>
> > $ g++ -D_GLIBCXX_CONCEPT_CHECKS l.cxx 2>&1|
> > wc
> > 57 565 13383
> > $ g++ l.cxx 2>&1|
> > wc
> > 18 156 2784
>
> > Concept checking is making my output even worse... or am I missing
> > something here ?
>
> Well... I don't think turning "concept checking" on should be adding
> any code -- but you are also not turning optimizations on.
>
> Try adding -O2 and checking the size again.
$ g++ -O2 -D_GLIBCXX_CONCEPT_CHECKS l.cxx 2>&1| wc
57 565 13383
$ g++ -O2 l.cxx 2>&1| wc
18 156 2784
Output seems to contains the exact same number of bytes.
I don't understand what O2 was supposed to do here. I am only trying
to get human readable output from what I believe is implemented in gcc
now: concept checking.
Thanks
-Mathieu