This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Saga of m68k PIC continues
Richard Henderson <rth@redhat.com> writes:
|> On Thu, Dec 12, 2002 at 11:41:23AM +0100, Andreas Schwab wrote:
|> > For -fPIC there is probably no difference, but full 32-bit pc-relative is
|> > still less efficient than register+16 bit offset, so with -fpic the use of
|> > the pic register is usually faster.
|>
|> Even though you've got to have an extra memory load? I mean, for
|> a *static* variable, your choices for computing the address are
For a static variable you are right. I was thinking about non-static
variables, i.e @GOT vs @GOTPC.
Andreas.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux AG, Deutschherrnstr. 15-19, D-90429 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."