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-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!postnews.google.com!a7g2000yqk.googlegroups.com!not-for-mail From: =?ISO-8859-1?Q?Hibou57_=28Yannick_Duch=EAne=29?= Newsgroups: comp.lang.ada Subject: Typical handling of packages through compilers Date: Wed, 22 Jul 2009 05:21:52 -0700 (PDT) Organization: http://groups.google.com Message-ID: NNTP-Posting-Host: 77.198.58.36 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: posting.google.com 1248265312 22538 127.0.0.1 (22 Jul 2009 12:21:52 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 22 Jul 2009 12:21:52 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: a7g2000yqk.googlegroups.com; posting-host=77.198.58.36; 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:7270 Date: 2009-07-22T05:21:52-07:00 List-Id: Hi all, I've noticed that the inclusion of a package, turns into the inclusion of all of its content, despite just a few part of it is really used (taking into account, internal dependencies). Using seperate data and function sections and then the linker gc-section option, does not change anything (the executable is even a bit bigger using these options). There is indeed no implementation requirement about it. But I would like to know more on the handling of package through various Ada compilers (including Janus if possible, if there are some Janus users in the place). By the way, on most compilers, is an inner package handled the same way a child package is ? I mean... child packages are included only when withed, but what about inner packages ? Are they tipically included in whole as there are part of another package body or are they tipically included only when explicitely referenced (althought inner packages does not need to be withed) ? Thanks for feed-backs P.S. I know GNAT is very famous and widely used, but as it is also very expensive (for most of people), it would be nice to have feed- back about other compilers, not only GNAT.