[Valgrind-developers] Memcheck optimisation level; Makefile.am includes
Nicholas Nethercote
njn25@cam.ac.uk
Wed Aug 25 10:36:00 GMT 2004
On Wed, 25 Aug 2004, Florian Weimer wrote:
>> So why are the total file sizes larger with -fomit-frame-pointer?
>
> Have you already ruled out debugging information? Since you compile
> with -g, this seems the most likely culprit. (If there is not frame
> pointer, more debugging information is needed to access local
> variables, so this growth isn't really avoidable.)
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.
It's interesting to see this effect, and good to know why it occurs.
On Wed, 25 Aug 2004, Andrew Haley wrote:
> Unwind info?
I guess not, since it seems to be the debug info.
(The code is all C, I should have mentioned that... is unwind info for C++
only? Either way, seems like it doesn't matter.)
Thanks very much, everyone!
N
More information about the Gcc
mailing list