• 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: difference between -m32 and -arch i386
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >difference between -m32 and -arch i386 (From: CSights <email@hidden>)

  • Prev by Date: Re: carrying dynamic library in app?
  • Next by Date: Re: Converting Xcode paths to usable paths
  • Previous by thread: difference between -m32 and -arch i386
  • Next by thread: XCode Jump To Definition
  • Index(es):
    • Date
    • Thread