Re: difference between -m32 and -arch i386
Re: difference between -m32 and -arch i386
- Subject: Re: difference between -m32 and -arch i386
- From: Scott Tooker <email@hidden>
- Date: Fri, 4 Dec 2009 14:28:08 -0800
I'd just stick with "-arch i386". That will produce a binary with just an i386 architecture. An additional bonus is that using -arch mirrors closely to how Xcode builds for multiple architectures.
Scott
On Dec 4, 2009, at 7:58 AM, CSights wrote:
> Hi all,
> Is there a difference between the two g++ commands:
>
> g++ -m32 source.cpp
> g++ -arch i386 source.cpp
>
> From what I've read the -arch command can be used to generate binaries which
> can run on different architectures. E.g. -arch i386 -arch x86_64 would
> produce a binary with the source compiled for both 32- and 64-bit Intel
> architectures. But if -arch i386 is used alone, is that the same as -m32?
> Just want to probe the possibilities: I'm trying to generate a binary for
> 32-bit Intel and want to hear what others have the say about the
> possibilities.
>
> Thanks!
> C.
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Xcode-users 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.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden