Lib change leads to larger executables

Daniel Keep daniel.keep.lists at gmail.com
Thu Mar 8 07:29:20 PST 2007



Carlos Santander wrote:
> Sean Kelly escribió:
>>
>> It's a long-term proposition, but what about delaying the generation
>> of TypeInfo until link-time?  The MS linker already optionally
>> performs code generation to allow for more optimized executables, so I
>> assume such a thing is definitely possible.  It would obviously
>> require a new linker, but I don't see any other way to address these
>> "silent dependency" issues, etc.  If I had the time I'd try it out,
>> but as things stand there's no way that could happen before September.
>>
>>
>> Sean
> 
> Unless I'm missing something, I don't think a new linker would be
> required. The compiler could just check if -c is passed. If it is, don't
> generate those TypeInfos, otherwise, do.

What about build utilities that compile each module separately (using
-c), and then invoke the linker directly?

	-- Daniel

-- 
Unlike Knuth, I have neither proven or tried the above; it may not even
make sense.

v2sw5+8Yhw5ln4+5pr6OFPma8u6+7Lw4Tm6+7l6+7D
i28a2Xs3MSr2e4/6+7t4TNSMb6HTOp5en5g6RAHCP  http://hackerkey.com/



More information about the Digitalmars-d mailing list