From: Adam Beneschan <adam@irvine.com>
Subject: Re: Typical handling of packages through compilers
Date: Wed, 22 Jul 2009 14:55:49 -0700 (PDT)
Date: 2009-07-22T14:55:49-07:00 [thread overview]
Message-ID: <cc259c9e-3ed6-40ca-9dbd-19a1b8d9b440@2g2000prl.googlegroups.com> (raw)
In-Reply-To: b74b3360-9880-4714-a223-be613bf3630e@k6g2000yqn.googlegroups.com
On Jul 22, 2:25 pm, Hibou57 (Yannick Duchêne)
<yannick_duch...@yahoo.fr> wrote:
> 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
No, that isn't what I said, I think. What I said is: some linkers
will link in all of package P (including P.Q) if any of it is
referenced; other linkers are able to include only those items in P
(including P.Q) that are needed. For this purpose, though, the linker
won't know what items are in Q and what items aren't. But I guess
this does mean that, for the second type of linker, if none of the
items in Q are referenced, then none of them will be linked in, but
this has nothing to do with whether they're inside Q or not. The
linker will probably have no knowledge of "Q" as an entity or group of
entities.
> Adam, are you a member of a compiler vendor team ?
Yes. www.irvine.com
-- Adam
next prev parent reply other threads:[~2009-07-22 21:55 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)
2009-07-22 21:55 ` Adam Beneschan [this message]
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