From: "Rego, P." <pvrego@gmail.com>
Subject: Re: Size optimization for objects
Date: Mon, 1 Jul 2013 09:35:01 -0700 (PDT)
Date: 2013-07-01T09:35:01-07:00 [thread overview]
Message-ID: <91dea591-19d5-484d-a13d-db86bbf0b3b8@googlegroups.com> (raw)
In-Reply-To: <b3dlgoFla32U1@mid.individual.net>
On Monday, July 1, 2013 12:28:24 PM UTC-3, Niklas Holsti wrote:
> In the linker world, "symbol value" usually means the address of the
> object or subprogram identified by the symbol. However, sometimes
> symbols can also stand for other kinds of values (offsets or sizes), but
> that is less common.
Ok, now I understand. Thanks.
> My "nm", on my 64-bit system, generates the value/address as a single
> column with 16-digit hex values, followed by "D" and other codes in the
> second column. Perhaps your "nm" separates the 16 hex digits into two
> 8-digit groups, for easier reading? Are you using 32-bit or 64-bit binaries?
I am using 32-bit binaries. Actually, it generates 2 columns of 8 hex digits only when I put the options --print-sizes --size-sort. Otherwise, it gives me something like
02d62538 N .stab
When I put the option --print-size --size-sort, it gives me (in a big list)
02d62538 fd3c61e0 N .stab
so I wonder that the second column should be the size. However, if I add all those second columns, the sum result is incoherent (much much bigger) with the real size of the final binary. Maybe is it masked with something I am missing?
>
>
>
> > Also, the second column represents the symbol size (in bytes I
>
> > presume).
>
>
>
> From your example, I doubt that: ff42d001 does not seem a likely size
>
> for anything.
>
>
>
> --
>
> Niklas Holsti
>
> Tidorum Ltd
>
> niklas holsti tidorum fi
>
> . @ .
next prev parent reply other threads:[~2013-07-01 16:35 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-28 19:49 Size optimization for objects Rego, P.
2013-06-29 7:10 ` Georg Bauhaus
2013-07-01 13:56 ` Rego, P.
2013-07-01 16:49 ` G.B.
2013-06-29 9:48 ` Jack Daniels
2013-07-01 13:58 ` Rego, P.
2013-06-30 11:34 ` rrr.eee.27
2013-07-01 14:35 ` Rego, P.
2013-07-01 15:28 ` Niklas Holsti
2013-07-01 16:35 ` Rego, P. [this message]
2013-07-01 18:21 ` Niklas Holsti
2013-07-02 20:32 ` Rego, P.
2013-07-06 16:06 ` Niklas Holsti
2013-07-10 11:57 ` Rego, P.
2013-07-10 11:58 ` Rego, P.
2013-07-11 9:10 ` Niklas Holsti
2013-07-18 14:09 ` Rego, P.
2013-07-18 14:10 ` Rego, P.
2013-07-11 8:35 ` Niklas Holsti
2013-07-12 0:35 ` Randy Brukardt
2013-07-18 15:16 ` Rego, P.
2013-07-18 15:12 ` Rego, P.
2013-07-18 17:57 ` Niklas Holsti
2013-07-19 5:02 ` Randy Brukardt
2013-07-19 13:20 ` Eryndlia Mavourneen
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox