qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] Re: Performances on Mac OS X
@ 2004-08-04 15:43 Joshua Root
  2004-08-04 16:31 ` Ben Pfaff
  2004-08-04 18:50 ` [Qemu-devel] Re: Performances on Mac OS X Roine Gustafsson
  0 siblings, 2 replies; 15+ messages in thread
From: Joshua Root @ 2004-08-04 15:43 UTC (permalink / raw)
  To: qemu-devel

Laurent Amon <amon@stanfordalumni.org> wrote:

>I was wondering whether the implementation of qemu is tied to gcc or 
>if it might
>be interesting to try to compile using IBM's compiler, which is able 
>to generate
>Altivec code...

I have tried compiling qemu with xlc and it chokes on the asm. I 
believe that it uses a different syntax than gcc for this. I don't 
know what its syntax is, but if anybody does it shouldn't be too hard 
to make a patch which lets it compile.

Using xlc does seem to give substantially better performance than 
gcc, and not just on floating point code.

Cheers,
Josh.
-- 
Joshua Root                  | "Dream up the kind of world you want to live
                              | in. Dream out loud at high volume. That's
z3022016@student.unsw.edu.au | what we do for a living." - Bono

^ permalink raw reply	[flat|nested] 15+ messages in thread
* Re: [Qemu-devel] Re: Performances on Mac OS X
@ 2004-08-13 10:55 Joshua Root
  0 siblings, 0 replies; 15+ messages in thread
From: Joshua Root @ 2004-08-13 10:55 UTC (permalink / raw)
  To: qemu-devel

Roine Gustafsson wrote:
>Joshua Root [z3022016@student.unsw.edu.au] wrote:
>
>>I have tried compiling qemu with xlc and it chokes on the asm. I 
>>believe that it uses a different syntax than gcc for this. I don't 
>>know what its syntax is, but if anybody does it shouldn't be too 
>>hard to make a patch which lets it compile.
>
>
>xlc is picky with the source and takes FOREVER to compile with -O6. However,
>xlc is object compatible with gcc, so usually you just use xlc on core stuff
>that needs the speed, and gcc for everything else.

Just for the record, here's a list of things in the qemu source which 
xlc doesn't like:

* __asm__
* this sort of thing: asm volatile ("dcbst 0,%0" : : "r"(ptr) : "memory");
* "..." notation in switch cases
* macros with variable number of arguments
* array definitions with no size specified

Cheers,
Josh

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

end of thread, other threads:[~2004-08-15  4:44 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-04 15:43 [Qemu-devel] Re: Performances on Mac OS X Joshua Root
2004-08-04 16:31 ` Ben Pfaff
2004-08-04 17:32   ` [Qemu-devel] Intel compiler (was Re: Performances on Mac OS X) André Braga
2004-08-04 18:50 ` [Qemu-devel] Re: Performances on Mac OS X Roine Gustafsson
2004-08-04 20:56   ` Fabrice Bellard
2004-08-04 21:13     ` André Braga
2004-08-04 21:25       ` Fabrice Bellard
2004-08-04 21:37         ` André Braga
2004-08-04 21:42           ` Lindsay Mathieson
2004-08-04 21:47           ` Laurent Amon
2004-08-04 21:55             ` André Braga
2004-08-13 10:17     ` Joshua Root
2004-08-13 12:14       ` Joe Batt
2004-08-15  4:39         ` dguinan
  -- strict thread matches above, loose matches on Subject: below --
2004-08-13 10:55 Joshua Root

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).