Mail Archives: djgpp/2004/01/30/04:45:18
"T?nu Aas" <tonu AT ids DOT ee> wrote:
> Does linker link whole module while some function from this module used
> ?
Yes.
> Then its wasting space by including functions not used by program.
No --- because a properly designed library will have essentially only
one function per module, or only put those together in a single module
that you would always need either all of, or none.
> If not then how it can include __gppconio_init because its not used
> by any function in module.
Impossible to tell without seeing your program. Try to cut it down to
the minimal example and show that here, including the gcc commands you
use to build it.
Or pass the '-Wl,-verbose' option in your gcc link command, which will
have the linker output enormous amounts of debug printouts showing you
exactly what it's doing, and why. You'll want to redirect that to a
file (--> DJGPP's "redir" utility).
--
Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
Even if all the snow were burnt, ashes would remain.
- Raw text -