Linux MIPS Architecture development
 help / color / mirror / Atom feed
* Static variables and "gp"
@ 2003-03-02  9:07 Gilad Benjamini
  2003-03-02 11:18 ` Ralf Baechle
  0 siblings, 1 reply; 11+ messages in thread
From: Gilad Benjamini @ 2003-03-02  9:07 UTC (permalink / raw)
  To: linux-mips

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

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2003-03-04 18:06 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-03-02  9:07 Static variables and "gp" Gilad Benjamini
2003-03-02 11:18 ` Ralf Baechle
2003-03-03 12:54   ` Johannes Stezenbach
2003-03-04  1:14   ` JVM under Linux on MIPS Rajesh Palani
2003-03-04  7:54     ` Kevin D. Kissell
2003-03-04  7:54       ` Kevin D. Kissell
2003-03-04  8:13     ` TAKANO Ryousei
2003-03-04  8:59       ` Kevin D. Kissell
2003-03-04  8:59         ` Kevin D. Kissell
2003-03-04 10:09         ` TAKANO Ryousei
2003-03-04 18:06           ` Jun Sun

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox