Thomas Tanner wrote:
> 
> On 21-Jun-99 Josh Vanderhoof wrote:
> > I wouldn't mind an option to compile without -fPIC.  I hardly ever run
> > two programs that use Mesa at once, so I don't really care if the
> > library has some dirty pages.  (IIRC, -fPIC is around 5-10% slower.)
> 
>  pic-code is faster for shared libraries.
>  If you don't like pic-code, use the static library.

Umm, not exactly.  PIC code loses a register and forces an extra jump in routines
which reference other symbols in the pic library.  It is possible to build a
non-pic .so which is much more convient than linking to a static library -- you
can't say './linuxquake3 +set r_glDriver libGL.a', for instance.  As Josh says
the non-pic libGL.so will be quicker by a noticable amount.

Keith


_______________________________________________
Mesa-dev maillist  -  [EMAIL PROTECTED]
http://lists.mesa3d.org/mailman/listinfo/mesa-dev

Reply via email to