From: rrr.eee.27@gmail.com
Subject: Re: Size optimization for objects
Date: Sun, 30 Jun 2013 04:34:30 -0700 (PDT)
Date: 2013-06-30T04:34:30-07:00 [thread overview]
Message-ID: <70b1d2b0-d5ab-431e-84b9-9f00af08dbe2@googlegroups.com> (raw)
In-Reply-To: <9cbe0ad4-f54c-4c99-ba58-4db027ae962e@googlegroups.com>
On Friday, June 28, 2013 9:49:20 PM UTC+2, Rego, P. wrote:
> I am trying to reduce the size of an application. Is there a tool (in GNAT) which generates a report for each package elements, of how much they contribute to the total size of the obj (and the final executable)?
>
strip(1) reduces the size of an application in the file system by removing the debug info.
If you want to see the size of various elements in a binary use nm(1). nm --print-size --size-sort might give you some hints where to start remving elements.
If you compile with -fdata-sections -ffunction-sections and link with --gc-sections the linker automatically removes all unused code and all unused data. That is typically easier than gnatelim.
HTH
Rolf
next prev parent reply other threads:[~2013-06-30 11:34 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 [this message]
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
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