• 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: -mtune on intel machine
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: -mtune on intel machine


  • Subject: Re: -mtune on intel machine
  • From: Eric Gorr <email@hidden>
  • Date: Fri, 15 May 2009 13:27:03 -0400

I did a bit more searching and found this information:

-------
http://developer.apple.com/documentation/Darwin/Reference/ManPages/man1/i686-apple-darwin9-gcc-4.0.1.1.html
-mtune=cpu-type
Tune to cpu-type everything applicable about the generated code, except for the ABI and the set of available instructions. The choices for cpu-type are:
generic
Produce code optimized for the most common IA32/AMD64/EM64T processors. If you know the CPU on which your code will run, then you should use the corresponding -mtune option instead of -mtune=generic. But, if you do not know exactly what CPU users of your application will have, then you should use this option. As new processors are deployed in the marketplace, the behavior of this option will change. Therefore, if you upgrade to a newer version of GCC, the code generated option will change to reflect the processors that were most common when that version of GCC was released. There is no - march=generic option because -march indicates the instruction set the compiler can use, and there is no generic instruction set applicable to all processors. In contrast, -mtune indicates the processor (or, in this case, collection of processors) for which the code is optimized.
--------
Since I don't know exactly on what CPU my users will be running the application on, I assume that I can set the build option to 'generic' even though this option does not appear in the popup menu. (The fact that it does not appear is a bug...?)
Anyone have any comments?


On May 15, 2009, at 1:17 PM, Eric Gorr wrote:

I found this recent message in the archives:

http://lists.apple.com/archives/xcode-users/2009/Apr/msg00357.html

which asks the same question I have, but I didn't see an answer posted
to the mailing list.

What is the correct build setting for mtune now that I am compiling
for intel machines only...?

Does anyone know?

Should it be 'none' now or is this build option just ignored on Intel
machines?




_______________________________________________ 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
  • Prev by Date: -mtune on intel machine
  • Next by Date: Re: 64 bit ??
  • Previous by thread: Re: -mtune on intel machine
  • Next by thread: Can't strip internal 'C' function symbols in framework product
  • Index(es):
    • Date
    • Thread