On Sun, Mar 02, 2003 at 12:18:20PM +0100, Ralf Baechle wrote: > 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 ... It works with diet libc (http://dietlibc.org/). You need a static, non-PIC libgcc.a which supports it, though, which means a bit of gcc config hackery... Regards, Johannes