GSOC Linker project

H. S. Teoh hsteoh at quickfur.ath.cx
Fri May 4 14:12:16 PDT 2012


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

-- 
There are three kinds of people in the world: those who can count, and those who can't.


More information about the Digitalmars-d mailing list