site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=n513c2pkvX29e039Z4i0HQ0oBEk/cYS3e9q9o1jWmEo=; b=XCsUPHMsq69/YZYOfzHW7B13JHQt3W4LKx0JKHmNIDAdReRSKP/HwFvS0EqvAxqXiX 6ugf9gVYZO4tDnUvIPo/1m6yjsbyQzDa9FJuION4C2jxBX5rvPYruZLGkpxid7EHYI1p 28GFiJBeBnkv97KplwUPMbHUIwtmovToWvgts= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=ubkxqmV1LAc+fL47dBGaOO7ksDJD7Z7gocgjt5Khr+2Wm4dcg4B4SIixw+Qg7UgCXB qN03LzNclRBh/49s7tvDb9uik2u8J+Flcmd+FBtXAKKATv+DoZn6bCXLrXG54pvT9ipl 2SNPlEryPMtu4vcHVHr0AFymBNWlbBtnEPUSA= Thanks... However, would it require using the -arch option to generate 64-bit binaries ? #gcc -arch x86_64 -o prg prg.c or just #gcc -o prg prg.c would give me a 64-bit binary ? thanks On Sat, Aug 29, 2009 at 12:24 PM, Eli Bach<ebach2@gmail.com> wrote:
On Aug 28, 2009, at 11:43 PM, rohan a wrote:
Hello All, Now with the 10.6 Snow Leopard kernel being full 64-bit, will it require all applications to also be 64-bit ?Our application does not need to address > 4GB memory. We had developed a 32-bit application for Mac OS X 10.4 and 10.5. Would the same work on 10.6 without any changes or would it require to be recompiled for 64-bit ?
Will Mac OS X gcc compiler on Snow Leopard natively build 64-bit binaries ?
Thanks
I have to say, even a cursory reading of any of the dozens and dozens of web pages dedicated to explaining Snow Leopards 32 vs 64 bit support would answer the first part of your question. Even banging in a few keywords from the question would get you the answer quite quickly.
simply put, Snow Leopard, either booted using a 32 bit kernel or a 64 bit kernel, can run BOTH 32 bit and 64 bit binaries at the same time.
And XCode (which uses gcc behind the scenes [well, probably, as I haven't explicitly checked] ) can produce 32 bit binaries and/or 64 bit binaries, at least for Intel, and probably both for PPC as well (as you can still build 64 bit apps for PPC that run on 10.5 using XCode on 10.6).
The only 32 vs 64 bit craziness from Apple would be the artificial limitation they put in to make it non-trivial to boot using the 64 bit kernel if your computer happens to have 32-bit EFI firmware (this is separate from whether your machine will by default boot using the 32 vs the 64 bit kernel).
Eli
_______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/info1686%40gmail.com
This email sent to info1686@gmail.com
_______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com