linux-mips
[Top] [All Lists]

RE: Static variables and "gp"

To: linux-mips@linux-mips.org
Subject: RE: Static variables and "gp"
From: "Gilad Benjamini" <yaelgilad@myrealbox.com>
Date: Sun, 02 Mar 2003 11:46:07 +0000
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
Who said user-code ?
Strictly kernel

-----Original Message-----
From: Ralf Baechle [mailto:ralf@linux-mips.org]
Sent: Sunday, March 02, 2003 1:18 PM
To: Gilad Benjamini
Cc: linux-mips@linux-mips.org
Subject: Re: Static variables and "gp"


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>