Skip to contentSkip to conversation

Performances on Mac OS X

Qemu-devel Joshua Root 1 participant 1 message Aug 13, 2004

lore
Share & tools
lore
#0 lore raw
Quoted 8 lines · Roine Gustafsson
Quoted 1 line · Joshua Root [[email protected]] 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