Lib change leads to larger executables

Sean Kelly sean at f4.ca
Fri Feb 23 14:12:12 PST 2007


Walter Bright wrote:
> John Reimer wrote:
>> optlink may just be the bane for D acceptance. And Tango gets the pitiful
>> opportunity of demonstrating why D is NOT ready for prime-time in the
>> commercial realm: the DM support tools it relies on are bogged down in
>> the past, reflecting D's lopsided existance on yet another level: a 
>> strong
>> language relying on a fragile, outdated, and poorly fit tool set.
> 
> Linux's ld exhibits the same behavior. Try compiling the 3 files here 
> according to the instructions below, and try different orderings adding 
> the object files to the librarian (ar). The same behavior as lib/optlink 
> results (using nm to see what symbols are placed into the resulting 
> executable).

In your example, no symbols at all from a is referenced in b or in test, 
and yet it's linked anyway in the first case?


Sean



More information about the Digitalmars-d mailing list