Mail Archives: djgpp/1999/10/04/08:44:13
> What you need to do is to divide a single module into several smaller
> modules. Then the linker will only link in those modules which you
> actually need in your program.
Of course - but in fact (after some inquiry etc.) the `ld' linker is almost
the only that can't do it itself! To circumvent this weakness, the people
at GNAT have made a tool, gnatelim, that checks dependencies and rebuilds
a program, putting in the .o's only the used parts. It's portable but
very slow, and the object files are to be rebuilt for different project.
This is why I wonder if there is no `ld++', that could e.g. obey to
a linker directive file which says what is to be deleted...
-
Gautier
_____\\________________\_______\
http://members.xoom.com/gdemont/
- Raw text -