• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Mac OS X Snow Leopard and 64-bit applications
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Mac OS X Snow Leopard and 64-bit applications


  • Subject: Re: Mac OS X Snow Leopard and 64-bit applications
  • From: rohan a <email@hidden>
  • Date: Sat, 29 Aug 2009 12:30:26 +0530

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<email@hidden> 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      (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
>
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Mac OS X Snow Leopard and 64-bit applications
      • From: Jean-Francois Roy <email@hidden>
    • Re: Mac OS X Snow Leopard and 64-bit applications
      • From: Eli Bach <email@hidden>
References: 
 >Mac OS X Snow Leopard and 64-bit applications (From: rohan a <email@hidden>)
 >Re: Mac OS X Snow Leopard and 64-bit applications (From: Eli Bach <email@hidden>)

  • Prev by Date: Re: Mac OS X Snow Leopard and 64-bit applications
  • Next by Date: Re: Mac OS X Snow Leopard and 64-bit applications
  • Previous by thread: Re: Mac OS X Snow Leopard and 64-bit applications
  • Next by thread: Re: Mac OS X Snow Leopard and 64-bit applications
  • Index(es):
    • Date
    • Thread