public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* G3/G4 -march flags?
@ 2002-05-08  9:59 Jack Lloyd
  2002-05-08 11:41 ` David Edelsohn
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Jack Lloyd @ 2002-05-08  9:59 UTC (permalink / raw)
  To: gcc

Hi,

Are there any extra flags beyond the usual optimization flags that I could
pass to GCC (2.95.x, 3.0.x, or 3.1.x) which would usefully optimize an
integer-intensive program on a G3 or G4?

Thanks,
  Jack

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

* Re: G3/G4 -march flags?
  2002-05-08  9:59 G3/G4 -march flags? Jack Lloyd
@ 2002-05-08 11:41 ` David Edelsohn
  2002-05-08 11:43 ` Daniel Egger
  2002-05-08 23:08 ` Bryce McKinlay
  2 siblings, 0 replies; 4+ messages in thread
From: David Edelsohn @ 2002-05-08 11:41 UTC (permalink / raw)
  To: Jack Lloyd; +Cc: gcc

>>>>> Jack Lloyd writes:

Jack> Are there any extra flags beyond the usual optimization flags that I could
Jack> pass to GCC (2.95.x, 3.0.x, or 3.1.x) which would usefully optimize an
Jack> integer-intensive program on a G3 or G4?

	See the GCC documentation for which flags are available with each
release of GCC.  GCC 3.1 supports -mcpu=740, -mcpu=750, -mcpu=7400,
-mcpu=7450.

David

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

* Re: G3/G4 -march flags?
  2002-05-08  9:59 G3/G4 -march flags? Jack Lloyd
  2002-05-08 11:41 ` David Edelsohn
@ 2002-05-08 11:43 ` Daniel Egger
  2002-05-08 23:08 ` Bryce McKinlay
  2 siblings, 0 replies; 4+ messages in thread
From: Daniel Egger @ 2002-05-08 11:43 UTC (permalink / raw)
  To: Jack Lloyd; +Cc: GCC Developer Mailinglist

Am Mit, 2002-05-08 um 18.00 schrieb Jack Lloyd:

> Are there any extra flags beyond the usual optimization flags that I could
> pass to GCC (2.95.x, 3.0.x, or 3.1.x) which would usefully optimize an
> integer-intensive program on a G3 or G4?

Assuming you're talking about a PowerPC machine the answer is no, not
really. You can pass -mcpu=7400 and -mtune=7400 above 3.0 (IIRC) but
this will affect scheduling just slightly. The difference between the 
PPC750 (G3) and the 7400 (G4) is minimal while the 7450 (newer G4s) 
have a longer pipeline and other changes to achieve higher clock speeds;
using -mcpu=7450 -mtune=7450 in 3.1 or CVS might help here but I such a 
machine to benchmark it.
 
-- 
Servus,
       Daniel

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

* Re: G3/G4 -march flags?
  2002-05-08  9:59 G3/G4 -march flags? Jack Lloyd
  2002-05-08 11:41 ` David Edelsohn
  2002-05-08 11:43 ` Daniel Egger
@ 2002-05-08 23:08 ` Bryce McKinlay
  2 siblings, 0 replies; 4+ messages in thread
From: Bryce McKinlay @ 2002-05-08 23:08 UTC (permalink / raw)
  To: Jack Lloyd; +Cc: gcc

Jack Lloyd wrote:

>Are there any extra flags beyond the usual optimization flags that I could
>pass to GCC (2.95.x, 3.0.x, or 3.1.x) which would usefully optimize an
>integer-intensive program on a G3 or G4?
>  
>

You can try -mcpu=750 for G3, and -mcpu=7400 or -mcpu=7450 for G4. See 
the manual for more information.

regards

Bryce.


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

end of thread, other threads:[~2002-05-09  5:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-05-08  9:59 G3/G4 -march flags? Jack Lloyd
2002-05-08 11:41 ` David Edelsohn
2002-05-08 11:43 ` Daniel Egger
2002-05-08 23:08 ` Bryce McKinlay

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).