GSOC Linker project

Adam Wilson flyboynw at gmail.com
Fri May 4 14:39:00 PDT 2012


On Fri, 04 May 2012 14:12:16 -0700, H. S. Teoh <hsteoh at quickfur.ath.cx>  
wrote:

> On Fri, May 04, 2012 at 07:54:38PM +0200, Andrej Mitrovic wrote:
>> On 5/4/12, foobar <foo at bar.com> wrote:
>> > How about augmenting the object format so that libraries would be
>> > self contained and would not require additional .di files? Is
>> > this possible optlink by e.g. adding special sections that would
>> > be otherwise ignored?
>>
>> How would you use a library you don't even have the interface to? I
>> mean if you can't even look at the API in your editor.. that'd be
>> insane.
>
> Exactly. And while we're at it, *really* strip unnecessary stuff from
> .di files, like function bodies, template bodies, etc.. That stuff is
> required by the compiler, not the user, so stick that in the object
> files and let the compiler deal with it. The .di file should be ONLY
> what's needed for the user to understand how to use the library.
>
>
> T

I've written code to do this, but apparently it breaks Phobos in the  
autotester. I can't get it to break Phobos on my local machine so I'm at a  
loss as how to fix it. Maybe you can help? The code is here:  
https://github.com/LightBender/dmd.git

-- 
Adam Wilson
IRC: LightBender
Project Coordinator
The Horizon Project
http://www.thehorizonproject.org/


More information about the Digitalmars-d mailing list