To avoid some linking errors

Jacob Carlborg doob at me.com
Tue Oct 30 01:53:48 PDT 2012


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

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list