Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LbKEP-0003LD-N2 for qemu-devel@nongnu.org; Sun, 22 Feb 2009 14:43:17 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LbKEO-0003J8-1F for qemu-devel@nongnu.org; Sun, 22 Feb 2009 14:43:17 -0500 Received: from [199.232.76.173] (port=44170 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LbKEN-0003Ir-Sc for qemu-devel@nongnu.org; Sun, 22 Feb 2009 14:43:15 -0500 Received: from mx2.suse.de ([195.135.220.15]:53671) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LbKEN-0003Ux-Fj for qemu-devel@nongnu.org; Sun, 22 Feb 2009 14:43:15 -0500 Received: from Relay1.suse.de (mail2.suse.de [195.135.221.8]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx2.suse.de (Postfix) with ESMTP id 662F247794 for ; Sun, 22 Feb 2009 20:43:13 +0100 (CET) Message-Id: <053F6EC7-AAB0-4BCA-BB44-45896AE3E862@suse.de> From: Alexander Graf In-Reply-To: <1A40C831-718A-4929-9600-B11D928561E2@web.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Apple Message framework v930.3) Subject: Re: [PATCH] [RESEND] Re: [Qemu-devel] [6443] Enabled building of x86_64 code on Mac OS X (Alexander Graf) Date: Sun, 22 Feb 2009 20:43:02 +0100 References: <081F093B-26D4-4407-919E-E107F558BE19@suse.de> <1A40C831-718A-4929-9600-B11D928561E2@web.de> Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org On 22.02.2009, at 19:48, Andreas F=E4rber wrote: > > Am 22.02.2009 um 16:50 schrieb Natalia Portillo: > >> Why not to just simply compile a multiarchitecture fat? >> It is possible in 10.4 and 10.5 SDKs to compile at the same time =20 >> ppc, ppc64, ia32 and x86_64 fully independent of what cpu is running. >> On execute time the OS will choose the most adequate. > > Often due to autoconf et al. it is necessary to postprocess using =20 > the `lipo` tool instead of directly passing multiple architectures =20 > to GCC. QEMU's configure detects the endianness for instance, so =20 > building a classical Universal Binary (ppc+i386) seems destined to =20 > fail... Creating a universal binary is more hassle than it's worth IMHO. But =20 if anyone wants to take on the challenge, I won't keep him. > Anyway, having a ppc64 binary in the bundle would on a G5 =20 > unconditionally run the 64-bit version, independent of whether that =20= > makes sense (e.g., 32-bit guest w/ <4GB RAM). Loading a 64-bit =20 > address consumes 5 instructions compared to 2 in 32-bit userland; on =20= > amd64 it probably makes more sense. I agree here. 64-bit makes a _lot_ more sense on x86_64. You get more =20= registers and other neat features (like direct read of rip). >> 64 bit WILL NOT COMPILE COCOA, this is not implemented until 10.6 =20 >> SDK. > > I thought it was a feature of v10.5? > Cf. http://www.apple.com/macosx/technology/64bit.html It worked fine last time I checked. For me cocoa compilation is broken =20= right now (x86 and x86_64 alike), but there was an unbreaking fix on =20 the list somewhere :) Alex=