[Valgrind-developers] Memcheck optimisation level; Makefile.am includes

Nicholas Nethercote njn25@cam.ac.uk
Wed Aug 25 12:22:00 GMT 2004


On Wed, 25 Aug 2004, Andrew Haley wrote:

> > Ah, I didn't think of that, I think it answers the question... for
> > vgskin_lackey.so, I get the following sizes:
> >
> >    normal:               26577
> >    -fomit-fp:            27299
> >
> >    normal stripped:       7780
> >    -fomit-fp stripped:    7748
> >
> > The stripped versions look as expected, ie. with -fomit-fp it is smaller.
>
> Only by 0.4%, which is nearly at the level of noise.  Is this true of
> the other executables as well?

For vgskin_memcheck.so, the biggest of the relevant files:

   normal:              242344
   -fomit-fp:           261268

   normal stripped:      90588
   -fomit-fp stripped:   90044

The difference is 0.6%.

I guess the conclusion is that -fomit-fp does make things smaller when no 
debug info is present, but not by much.  And that this is because although 
fewer instructions are generated, those generated are on average longer...

N



More information about the Gcc mailing list