• 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: Eli Bach <email@hidden>
  • Date: Sat, 29 Aug 2009 00:06:43 -0700


On Aug 29, 2009, at 12:00 AM, rohan a wrote:

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

Again, a minimal amount of effort on your part would tell you the answer.


Try compiling something with the various options, and look at the result, say with the 'lipo' cli tool.

Most likely, you will need to include the -arch specifier if you want to compile for any other CPU architecture besides the one you are currently using. And depending on various other settings, you may be able to get gcc to compile multiple architectures at once, if needed, instead of building each architecture individually, then lipo'ing the results together at the end.

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


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>)
 >Re: Mac OS X Snow Leopard and 64-bit applications (From: rohan a <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