This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Valgrind-developers] Memcheck optimisation level; Makefile.amincludes


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]