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

difference between -m32 and -arch i386


  • Subject: difference between -m32 and -arch i386
  • From: CSights <email@hidden>
  • Date: Fri, 4 Dec 2009 10:58:05 -0500

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

  • Follow-Ups:
    • Re: difference between -m32 and -arch i386
      • From: Scott Tooker <email@hidden>
  • Prev by Date: Re: Universal "./configure" projects: Inaccurate TechNote?
  • Next by Date: Re: wprintf does not honor "Typecheck calls to printf/scanf" setting
  • Previous by thread: Re: Universal "./configure" projects: Inaccurate TechNote?
  • Next by thread: Re: difference between -m32 and -arch i386
  • Index(es):
    • Date
    • Thread