Results 1 to 5 of 5

Thread: GCC x86 Receives New Intel CPU Tuning Target

  1. #1
    Join Date
    Jan 2007
    Posts
    15,135

    Default GCC x86 Receives New Intel CPU Tuning Target

    Phoronix: GCC x86 Receives New Intel CPU Tuning Target

    With future versions of GCC there is now a "-mtune=ia" target for the GNU Compiler Collection's x86 back-end to always optimize the compiled program for the very latest Intel processors...

    http://www.phoronix.com/vr.php?view=MTUzNzE

  2. #2
    Join Date
    Dec 2013
    Posts
    1

    Default

    It got changed to mtune=intel
    See http://gcc.gnu.org/gcc-4.9/changes.html

  3. #3
    Join Date
    Jan 2012
    Posts
    151

    Default

    Suppose I add the -mtune=ia option by default to my {C,CXX}FLAGS when compiling using GCC because I have the latest Intel CPU. A new Intel CPU architecture comes out, after which I upgrade GCC. Does this mean that the binaries I now produce won't work on my hardware?

  4. #4
    Join Date
    Feb 2008
    Location
    Linuxland
    Posts
    5,187

    Default

    Check the gcc manual - mtune doesn't affect the "will it run on foo", march does.

  5. #5
    Join Date
    Jan 2012
    Posts
    151

    Default

    Quote Originally Posted by curaga View Post
    Check the gcc manual - mtune doesn't affect the "will it run on foo", march does.
    Sweet, thanks! Here's a good SO post that explains the difference: http://stackoverflow.com/questions/1...ent-from-mtune

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •