This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: [I don't think it's off-topic at all] Linking speed for C++


On Thu, May 10, 2001 at 11:16:39AM -0700, Joe Buck wrote:
> The vtable_pic attribute may be applied to a base class (that is, a class
> that is not derived from another class).  If present, the vtable is
> generated in offset form (function address minus vtable address);

Seems ok.

> The vtable_stubs attribute may be applied to a derived class,
> provided that some base class has the vtable_pic attribute.  This
> attribute is intended for use when the definitions of the member
> functions of the derived class are in a different dso than the
> functions of the base class.

I suspect that this will be hard for people to use in practice.

> Exception handling is also non-PIC; sorry, I don't know enough about
> the current implementation to have any suggestions for reducing the
> number of relocations.

This is being addressed in the new eh implementation.


r~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]