linux-mips
[Top] [All Lists]

Re: Static variables and "gp"

To: Gilad Benjamini <yaelgilad@myrealbox.com>
Subject: Re: Static variables and "gp"
From: Ralf Baechle <ralf@linux-mips.org>
Date: Sun, 2 Mar 2003 12:18:20 +0100
Cc: linux-mips@linux-mips.org
In-reply-to: <1046596048.d43b0c00yaelgilad@myrealbox.com>; from yaelgilad@myrealbox.com on Sun, Mar 02, 2003 at 09:07:28AM +0000
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <1046596048.d43b0c00yaelgilad@myrealbox.com>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mutt/1.2.5.1i
On Sun, Mar 02, 2003 at 09:07:28AM +0000, Gilad Benjamini wrote:

> How can I force a specific static variable to be used by the "gp" register
> rather than by a two-step load ?
> Compiling a mips-linux using gcc.

That feature doesn't work in gcc for userspace code ...

  Ralf

<Prev in Thread] Current Thread [Next in Thread>