qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "André Braga" <meianoite@gmail.com>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] Re: compile qemu for a G5
Date: Mon, 11 Oct 2004 12:36:16 -0300	[thread overview]
Message-ID: <2ad73a041011083641701e4e@mail.gmail.com> (raw)
In-Reply-To: <08B0873F-1B8A-11D9-ACC0-0011242E9BF2@aol.com>

On Mon, 11 Oct 2004 06:32:44 -0700, Fred Hope <fredakbar@aol.com> wrote:
> So for my iMac G5 1.8 GHz it would be -mcpu=970 or what?  The only
> thing I know about the G5 is that it is really the PowerPC 970.  Also,
> I use this flag when I run ./configure, right?  Not the "make" command
> itself?

-mcpu=power4 is the correct flag. As of January there was a bug in GCC
regarding this flag and 64-bit code, so I suggest looking for updates
if your xcode tools happen to be somewhat old.

Other than that, G5 behaves better if code is aligned to 32 byte
boundaries, because of the longer cache lines. Those flags may help:
-falign-functions=32, -falign-labels=32, -falign-loops=32,
-falign-jumps=32. They will potentially make the executable fairly
large, though, which may or may not be a problem for you.

Also take a look at these pages and their links:
http://developer.apple.com/technotes/tn/tn2087.html
http://developer.apple.com/performance/g5optimization.html

Back in June there were some issues with the configure file flags
being completely ignored by some makefiles, and I sent a patch to the
list, but I don't know if they were applied (haven't been able to work
with the sources since then), so I suggest looking at the makefiles
for places where those flags should appear but end up not showing at
all.


cheers,
A.




-- 
"A year spent in artificial intelligence is enough to make one believe in God"
Alan J. Perlis

  reply	other threads:[~2004-10-11 15:43 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <200410110346.7d6416a3a5f2f@rly-yi05.mx.aol.com>
2004-10-11 13:32 ` [Qemu-devel] Re: compile qemu for a G5 Fred Hope
2004-10-11 15:36   ` André Braga [this message]
     [not found] <200410111157.4cf416aad54109@rly-xi03.mx.aol.com>
2004-10-12  2:43 ` Fred Hope

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2ad73a041011083641701e4e@mail.gmail.com \
    --to=meianoite@gmail.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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 NNTP newsgroup(s).