Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Steven Bosscher <stevenb.gcc@gmail.com>
To: Jan Kratochvil <jan.kratochvil@redhat.com>
Cc: binutils@sourceware.org, Andreas Schwab <schwab@linux-m68k.org>,
		David Taylor <dtaylor@emc.com>, Doug Evans <dje@google.com>,
	nick clifton <nickc@redhat.com>,
	gcc@gcc.gnu.org, 	gdb <gdb@sourceware.org>
Subject: Re: stabs/dwarf size comparison on CSiBE (Was: stabs support in binutils, gcc, and gdb)
Date: Tue, 15 Jan 2013 23:27:00 -0000	[thread overview]
Message-ID: <CABu31nN5BwnN62=ezf7EiQJQ9b5RW5dGXOOrFCeeEL__x66fEg@mail.gmail.com> (raw)
In-Reply-To: <20130115175301.GA22635@host2.jankratochvil.net>

On Tue, Jan 15, 2013 at 6:53 PM, Jan Kratochvil wrote:
> On Tue, 15 Jan 2013 11:09:46 +0100, Steven Bosscher wrote:
>> Unless someone can shoot holes in this test approach,
>
> While the sum of *.o files sizes may make sense in some cases I would find
> more useful to measure it only for the final executables and after they have
> been processed by dwz.
>
> Besides dwz also .debug_* sections relocations have large size and all these
> relocations get removed in the final executable.

I know, but that's not how CSiBE is set up. My numbers bias against
DWARF for the reasons you mention, and the size of the DWARF info
*still* is not nearly an order of magnitude greater than stabs info.

I've posted these numbers in part also to challenge others to show
some benchmarking. I'd like to hear from others how stabs and DWARF
debug sizes compare for $YOUR_FAVORITE_APPLICATION...

Here's some more numbers, this time for gzip-1.5 on
powerpc64-unknown-linux-gnu, compiled with RedHat GCC 4.6.3-2,
compiler options "-O2 -g...".

size of         flags used
debug info      for gzip build
202329          -O2 -gstabs
233109          -O2 -gdwarf-2
218257          -O2 -gdwarf-4
116035          -O2 -gdwarf-4 -fno-var-tracking
171211          -O2 -gdwarf-4 -fno-var-tracking-assignments

Size of debug info is the output of:
 size -A gzip \
   | egrep "\.debug|\.stab" \
   | awk 'BEGIN{sum=0}{sum=sum+$2}END{print sum}'

i.e. on the final executable.

Again, DWARF is nowhere near an order of magnitude larger than stabs
info, as reported by the OP.

Note, I'm not using dwz because I don't think it's a fair comparison
against non-compressed stabs until dwz is made part of the default
tool chain.

Ciao!
Steven


      reply	other threads:[~2013-01-15 23:27 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-15 10:10 Steven Bosscher
2013-01-15 10:12 ` Steven Bosscher
2013-01-15 17:53 ` Jan Kratochvil
2013-01-15 23:27   ` Steven Bosscher [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CABu31nN5BwnN62=ezf7EiQJQ9b5RW5dGXOOrFCeeEL__x66fEg@mail.gmail.com' \
    --to=stevenb.gcc@gmail.com \
    --cc=binutils@sourceware.org \
    --cc=dje@google.com \
    --cc=dtaylor@emc.com \
    --cc=gcc@gcc.gnu.org \
    --cc=gdb@sourceware.org \
    --cc=jan.kratochvil@redhat.com \
    --cc=nickc@redhat.com \
    --cc=schwab@linux-m68k.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox