Re: Mac OS X Snow Leopard and 64-bit applications
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