linux-mips
[Top] [All Lists]

Static variables and "gp"

To: linux-mips@linux-mips.org
Subject: Static variables and "gp"
From: "Gilad Benjamini" <yaelgilad@myrealbox.com>
Date: Sun, 02 Mar 2003 09:07:28 +0000
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
Hi,
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.

I was poking around for information and stumbled across the "-G" flag,
the "__attribute__ ((section (".sdata")))" (or sbss), the "-msdata" but to no 
avail.
I only got more confused.

Any help will be appreciated


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