From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,cb9e1ed8412da744 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!postnews.google.com!k6g2000yqn.googlegroups.com!not-for-mail From: =?ISO-8859-1?Q?Hibou57_=28Yannick_Duch=EAne=29?= Newsgroups: comp.lang.ada Subject: Re: Typical handling of packages through compilers Date: Wed, 22 Jul 2009 14:25:47 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: <4c52e11d-891d-4019-a849-8824f4f5c5c5@b25g2000prb.googlegroups.com> NNTP-Posting-Host: 86.66.190.56 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1248297947 5670 127.0.0.1 (22 Jul 2009 21:25:47 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 22 Jul 2009 21:25:47 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: k6g2000yqn.googlegroups.com; posting-host=86.66.190.56; posting-account=vrfdLAoAAAAauX_3XwyXEwXCWN3A1l8D User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; fr),gzip(gfe),gzip(gfe) Xref: g2news2.google.com comp.lang.ada:7281 Date: 2009-07-22T14:25:47-07:00 List-Id: On 22 juil, 16:29, Adam Beneschan 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. =A0Inner > packages are not at all reflected in the structure of the object > file. =A0Our 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. > > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0-- 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 ?