Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
From: mru@users.sourceforge.net (Måns Rullgård)
Subject: Re: Q: What is the problem here?
Date: 11 Jun 2003 09:36:24 +0200	[thread overview]
Message-ID: <yw1xr8612hhj.fsf@zaphod.guide> (raw)
In-Reply-To: 87he6xa2k9.fsf@new.home-net.stg

Torsten Zirzlaff <zirzlaff@nienor.s.bawue.de> writes:

> >> >> /usr/bin/ld: ../../dist/lib/libxptcmd.a(xptcinvoke_linux_alpha.o): pc-relative relocation against dynamic symbol $invoke_copy_to_stack..ng
> >> >
> >> > Recompile all of it and make sure -fPIC is present.
> >> 
> >>   Well, I had done that, but the error stays the same. Any more ideas?
> >
> > Did you "make clean" first?  A missing -fPIC usually results in that
> > message.  Which versions of gcc and binutils are you using?
> 
>   Well, no I deleted the complete source-tree and just done a
> configure, make I think this should cover a make clean :).

That should do.

>   Nevertheless I found out that with gcc-3.2 and 3.3 it does not build
> (binutils 2.14.90.0.2) with gcc-2.95 it does build if I only use a -O2
> and not -O4 as before. With the 3.x series this trick didn't work.

That's expected.  Only gcc 3.1 and up use that relocation.

>   The question is if I got more performance if I would use a 3.x
> series instead of a 2.95. So far my clinpack.c test does not show any
> improvement. On the other hand ccc gives me 2.5-3 times more
> performance. 

The 3.x series generate faster code for Alpha than 2.95, in my
experience.  For some specific programs, 3.3 even beats ccc.  See some
posts by me a few weeks ago on that topic.  Make sure your gcc is
configured to optimize for your CPU.  If you built it yourself, it is
probably correct, otherwise it might be configured for ev45 by
default.

The main difference between -O2 and -O3 is automatic inlining of
functions, without an explicit 'inline' keyword.  Any higher number
than 3 is equivalent to 3.

>   Anyway, I now build with the 2.95 series, but wonder why the other
> ones fail on mozilla 1.3.1

It is strange indeed...

-- 
M�ns Rullg�rd
mru@users.sf.net


  reply	other threads:[~2003-06-11  7:36 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-06-08 21:19 Q: What is the problem here? Torsten Zirzlaff
2003-06-09  8:56 ` Måns Rullgård
2003-06-10 19:42   ` Torsten Zirzlaff
2003-06-10 21:53     ` Måns Rullgård
2003-06-11  0:19       ` Torsten Zirzlaff
2003-06-11  7:36         ` Måns Rullgård [this message]
2003-06-12 13:20           ` Torsten Zirzlaff
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox