Linux MIPS Architecture development
 help / color / mirror / Atom feed
* "-G" optimizations
@ 2004-01-18 23:16 Gilad Benjamini
  2004-01-19  6:24 ` Ralf Baechle
  0 siblings, 1 reply; 2+ messages in thread
From: Gilad Benjamini @ 2004-01-18 23:16 UTC (permalink / raw)
  To: linux-mips

Hi,
If I understand correctly, "-G" flag tells gcc that
static variables below a certain size are placed
in a small area that allows easier access to them by
avoiding the two step load.
Ralf's reply to a question on the same issue I posted
a year ago, implied that this optimization is not
available in mips kernel.
Is it ?

I ran into an existing project where the kernel
was compiled with "-G0" while a module was compiled
with "-G8".
Is this a legal combination ?
If it isn't, what could the implications be ?
TIA

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

* Re: "-G" optimizations
  2004-01-18 23:16 "-G" optimizations Gilad Benjamini
@ 2004-01-19  6:24 ` Ralf Baechle
  0 siblings, 0 replies; 2+ messages in thread
From: Ralf Baechle @ 2004-01-19  6:24 UTC (permalink / raw)
  To: Gilad Benjamini; +Cc: linux-mips

On Sun, Jan 18, 2004 at 11:16:20PM +0000, Gilad Benjamini wrote:

> was compiled with "-G0" while a module was compiled
> with "-G8".
> Is this a legal combination ?
> If it isn't, what could the implications be ?

It's never legal.  The -G option addresses data relative to $28 but Linux
uses it already to store the current pointer.

  Ralf

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

end of thread, other threads:[~2004-01-19  6:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-01-18 23:16 "-G" optimizations Gilad Benjamini
2004-01-19  6:24 ` Ralf Baechle

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