comp.lang.ada
 help / color / mirror / Atom feed
From: Jeffrey Creem <jeff@thecreems.com>
Subject: Re: Typical handling of packages through compilers
Date: Wed, 22 Jul 2009 23:15:07 GMT
Date: 2009-07-22T23:15:07+00:00	[thread overview]
Message-ID: <vagkj6-urq.ln1@newserver.thecreems.com> (raw)
In-Reply-To: <a2f32a27-1137-4f10-a2af-877c4e0d4707@a7g2000yqk.googlegroups.com>

Hibou57 (Yannick Duch�ne) wrote:
> 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.

A few data other non gnat data points

Most old Ada 83 Verdix (Then Rational) VADS compilers did smart linking 
(at least for vxWorks targets).

Greenhills Ada does it on some platforms (interestingly enough, does not 
  really seem to work for vxWorks targets but I also gave up a bit early)



      parent reply	other threads:[~2009-07-22 23:15 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
2009-07-22 23:15 ` Jeffrey Creem [this message]
replies disabled

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