[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [RFD] optimized versions of openssl



On Wed, Sep 04, 2002 at 01:10:38PM -0400, Michael Stone wrote:
> On Wed, Sep 04, 2002 at 12:40:57PM -0400, Daniel Jacobowitz wrote:
> > You can make the linker do most of the work for you.  Glibc's linker
> > tries CPU-specific directory prefixes before looking straight in /lib
> > or /usr/lib.  You could provide small sub-libraries in /usr/lib/sparcv8
> > (I think that works.... someone should check; I know /lib/686 works on
> > i386) that contain the optimized code.  Then a normal version in
> > /usr/lib and openssl's main shared library can link to the small
> > library, trusting the linker to find the right one.
> 
> Except, IIRC, we stopped doing that for glibc since it caused all sorts
> of hell. (Don't remember the specific hellaciousness, but I don't recall
> it being good. :) If that method can be used sucessfully it would be
> nice for this case. 

The hell was specific to glibc, and because it was the whole glibc and
not a small optimized core like I proposed above - glibc exported
different functions based on the CPU or something.  Or there was a
calling conventions issue.  Something like that.

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer



Reply to: