comp.lang.ada
 help / color / mirror / Atom feed
From: "Hibou57 (Yannick Duchêne)" <yannick_duchene@yahoo.fr>
Subject: Re: Typical handling of packages through compilers
Date: Wed, 22 Jul 2009 14:25:47 -0700 (PDT)
Date: 2009-07-22T14:25:47-07:00	[thread overview]
Message-ID: <b74b3360-9880-4714-a223-be613bf3630e@k6g2000yqn.googlegroups.com> (raw)
In-Reply-To: 4c52e11d-891d-4019-a849-8824f4f5c5c5@b25g2000prb.googlegroups.com

On 22 juil, 16:29, Adam Beneschan <a...@irvine.com> wrote:
> By the way, "inner packages" don't have any effect at all on this, and
> I'd guess that that is true for other compilers as well.  Inner
> packages are not at all reflected in the structure of the object
> file.  Our linker considers each code or data item individually to see
> if it can be eliminated; it doesn't care at all about whether they've
> been grouped into another package.
>
>                                            -- Adam

So if I have

package P is
...
   package Q is
      ....
   end Q;
end P;

then with most compiler, Q will not be linked unless it is referenced

That's a good news

In the mean time, I know that a lot of Ada users don't bother about
plus or minus 150KB, so it's not a surprise if some compilers don't
bother about it.

Adam, are you a member of a compiler vendor team ?



  reply	other threads:[~2009-07-22 21:25 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-22 12:21 Typical handling of packages through compilers Hibou57 (Yannick Duchêne)
2009-07-22 12:57 ` Gautier write-only
2009-07-22 13:12   ` Hibou57 (Yannick Duchêne)
2009-07-22 20:06   ` tmoran
2009-07-22 21:27     ` Hibou57 (Yannick Duchêne)
2009-08-14 22:06     ` Randy Brukardt
2009-07-22 14:29 ` Adam Beneschan
2009-07-22 21:25   ` Hibou57 (Yannick Duchêne) [this message]
2009-07-22 21:55     ` Adam Beneschan
2009-07-22 23:15 ` Jeffrey Creem
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox