comp.lang.ada
 help / color / mirror / Atom feed
From: Niklas Holsti <niklas.holsti@tidorum.invalid>
Subject: Re: Size optimization for objects
Date: Thu, 18 Jul 2013 20:57:11 +0300
Date: 2013-07-18T20:57:11+03:00	[thread overview]
Message-ID: <b4qojnFdcceU1@mid.individual.net> (raw)
In-Reply-To: <ca34e347-b53e-4119-b6d1-0cba6f40be79@googlegroups.com>

On 13-07-18 18:12 , Rego, P. wrote:
> On Thursday, July 11, 2013 5:35:06 AM UTC-3, Niklas Holsti wrote:
>> Yes, if you consider only the size of the code ("text" segment).
>> For data, if the program contains uninitialized, statically
>> allocated variables, the file size can be smaller than the "memory
>> image" size, because the .o file only describes those variables
>> (name, size, address or offset) but does not provide values for the
>> variables.
> Ok.
> 
>> The fact that this number is so absurdly large is relevant, and the
>> fact that it is larger than the size of the .o file may be
>> relevant, unless the number includes the size of uninitialized
>> statically allocated data
> Ok.
> 
> Interesting, I run the same code bla.adb on a Unix machine. The first
> part of the second column (that one which writes ffbec...), and it
> does not appear here.  So the lines look like 00000000 00000001 D
> ada__exceptions_E

That looks better.

> However when I add all the column, the result also seems incoherent,
> around 8GB.  The real bla.out generated is ~478kB.

If you send me the new "nm" output, I can have a look and try to
understand this 8 GB result. You can use the mail address given under
"Contact information" at http://www.tidorum.fi/en/index.html, or the
address that my signature below tries to obscure on two lines.

-- 
Niklas Holsti
Tidorum Ltd
niklas holsti tidorum fi
      .      @       .


  reply	other threads:[~2013-07-18 17:57 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.
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 [this message]
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