From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29702 invoked by alias); 12 Dec 2002 18:08:01 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 29688 invoked from network); 12 Dec 2002 18:07:57 -0000 Received: from unknown (HELO Cantor.suse.de) (213.95.15.193) by sources.redhat.com with SMTP; 12 Dec 2002 18:07:57 -0000 Received: from Hermes.suse.de (Charybdis.suse.de [213.95.15.201]) by Cantor.suse.de (Postfix) with ESMTP id 091CB14B06; Thu, 12 Dec 2002 19:07:57 +0100 (MET) To: Richard Henderson Cc: Peter Barada , Peter.Barada@motorola.com, gcc@gcc.gnu.org Subject: Re: Saga of m68k PIC continues References: <200212112045.gBBKjnQ13223@hyper.wm.sps.mot.com> <20021211235940.GF6975@redhat.com> <200212120011.gBC0B5W08189@hyper.wm.sps.mot.com> <20021212081713.GC7304@redhat.com> <20021212180017.GB7861@redhat.com> X-Yow: I've got to get these SNACK CAKES to NEWARK by DAWN!! From: Andreas Schwab Date: Thu, 12 Dec 2002 11:28:00 -0000 In-Reply-To: <20021212180017.GB7861@redhat.com> (Richard Henderson's message of "Thu, 12 Dec 2002 10:00:17 -0800") Message-ID: User-Agent: Gnus/5.090007 (Oort Gnus v0.07) Emacs/21.3.50 (ia64-suse-linux) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-SW-Source: 2002-12/txt/msg00648.txt.bz2 Richard Henderson 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."