What’s the difference between mtune and mcpu. I’ve seen some that say to use mtune and I’ve been using mcpu.
-mcpu is the old way to specify both architecture and optimization target.
Nowadays, you say -march=i686 to use i686 instructions, and -mtune=core2 to optimize the code for a Intel core 2. Use mtune for optimization, and mcpu to define the oldest architecture that can run your executable.
Thanks! Makes a lot more sense now. I’ve been using all three (mcpu, march, mtune) together. Glad to get rid of mcpu.
Fill in your details below or click an icon to log in:
You are commenting using your WordPress.com account. ( Log Out / Change )
You are commenting using your Twitter account. ( Log Out / Change )
You are commenting using your Facebook account. ( Log Out / Change )
You are commenting using your Google+ account. ( Log Out / Change )
Connecting to %s
Notify me of new comments via email.
Notify me of new posts via email.