To avoid some linking errors

Paulo Pinto pjmlp at progtools.org
Tue Oct 30 05:21:47 PDT 2012


On Tuesday, 30 October 2012 at 08:53:49 UTC, Jacob Carlborg wrote:
> On 2012-10-30 03:48, Walter Bright wrote:
>
>> No need for :o), it's a fair question.
>>
>> The linking process itself is pretty simple. The problems come 
>> from
>> designers who can't resist making things as complicated as 
>> possible.
>> Just look at the switches for the various linkers, and what 
>> they purport
>> to do. Then, look at all the complicated file formats it deals 
>> with:
>>
>> res files
>> def files
>> linker script files
>> dwarf
>> codeview
>> magic undocumented formats
>> pe files
>> shared libraries
>> eh formats
>>
>> And that's just the start.
>
> The linker should not be directly built into the compiler. It 
> should be build as a library, like the rest of the tool chain. 
> The compiler then calls a function in the linker library to do 
> the linking.
>
> See one of my other replies:
>
> http://forum.dlang.org/thread/jxiupltnfbmbvyxherca@forum.dlang.org?page=5#post-k6o4en:242bld:241:40digitalmars.com

This is most likely the approach taken by Delphi and .NET.



More information about the Digitalmars-d mailing list