Mail Archives: djgpp/1999/10/01/21:30:29
> The well-done project is probably somewhere in between.
Thanks for this commentary about size of modules (or whatever
produces a .o file).
Since a good module is not too big, the question of
trimming unused code is indeed not too terrible (IMHO).
But as a module is a whole and can be used in many different
projects, it would be annoying to subdivide it
excessively, or for particular purposes, leading to
different versions of the same things floating around...
Hence, trimming can be useful, and some linkers _do_ it!
Two linkers I know that don't see object files as indivisible
and trim unused things:
* Borland Pascal (and surely Delphi) does it completely (code+data)
* Janus Ada (RR Software) does it, at least for code
But both use an own object file format, with much richer
informations than contained in a ASM/C - produced .o file.
These linkers were made surely 20 years after the first `ld'...
Beside it, someone said that M$ and Phar Lap linkers could do such
trimming too, for standard object files - to be verified...
--
Gautier
_____\\________________\_______\
http://members.xoom.com/gdemont/
- Raw text -