Boost logo

Boost :

From: Douglas Gregor (gregod_at_[hidden])
Date: 2002-02-26 11:01:44


On Tuesday 26 February 2002 10:01 am, you wrote:
> > Ouch! I just checked the size of boost::signal<void> on the compilers I
>
> have
>
> > easy access to, and here are the results:
> >
> > Borland C++ 5.5.1/Windows 2000: 80
> > MSVC 6.0sp5/Windows 2000: 28
> > GCC 2.95.3/Linux 2.4.x: 24
> > GCC 3.0.3/Linux 2.4.x: 16
> > Comeau 4.2.45.2/Linux 2.4.x: 20
>
> Oh now those sizes sound far more reasonable! In that case consider my
> objections dropped. I'm still not sure how you're getting 80 bytes on BCC
> though. On a default Jam build, which I notice doesn't switch on the empty
> base class optimisation or empty member optimisation, I get 136. Enabling
> these optimisations, I get 120. Still quite some way behind GCC3.0.3

I just did a quick-and-dirty test:
  bcc32 -I$SIGNALS_ROOT -I$BOOST_ROOT signal_size.cpp
$SIGNALS_ROOT/libs/signals/src/*.cpp

        Doug


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk