Thu, 26 Nov 2009 12:02:59 -0800, Walter Bright wrote: > Sergey Gromov wrote: >> Actually, I'm slowly working on a D linker myself. Writing it in D, >> from scratch. My goal is to allow linking a mix of OMF and COFF objects >> and libraries into the same executable, obviating the need for any >> conversion. I wonder if it's feasible to continue my work. I'm just a >> couple baby steps beyond the rough design stage. >> >> Well, probably I'll continue anyway, as long as I've got the courage. I >> like to re-invent wheels after all. > > Building a linker itself is probably not too useful, given that it'll be > hard to compete with optlink. What would be cool, though, is a linker > that is able to do more advanced things - like organizing the code to > minimize page loading, eliminating functions that are identical except > for the name, etc.
It's definitely possible to compete with optlink in maintainability and extensibility. :) As to the optimizations, we'll see if I can pull it off.