comp.lang.ada
 help / color / mirror / Atom feed
* Typical handling of packages through compilers
@ 2009-07-22 12:21 Hibou57 (Yannick Duchêne)
  2009-07-22 12:57 ` Gautier write-only
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Hibou57 (Yannick Duchêne) @ 2009-07-22 12:21 UTC (permalink / raw)


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.



^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2009-08-14 22:06 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox