GCC优化标记至强? [英] gcc optimization flags for Xeon?

查看:202
本文介绍了GCC优化标记至强?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我会想你的输入gcc编译器标志,以优化的至强处理器时要使用的?

I'd want your input which gcc compiler flags to use when optimizing for Xeons?

有在mtune中或三月没有至强,所以这是最匹配?

There's no 'xeon' in mtune or march so which is the closest match?

推荐答案

至强是一个营销术语,因此它涵盖了处理器,具有非常不同的内部一个长长的清单。

Xeon is a marketing term, as such it covers a long list of processors with very different internals.

如果你的意思是新的Nehalem处理器(酷睿i7),然后这张幻灯片表示,由于GCC 4.3.1应=通用(虽然你自己的自己的应用程序的测试可能会发现其他设置thatoutperform这一点)来使用-march。 4.3系列还增加-msse4.2如果您希望优化FP数学这一方面。

If you meant the newer Nehalem processors (Core i7) then this slide indicates that as of 4.3.1 gcc should be use -march=generic (though your own testing of your own app may find other settings thatoutperform this). The 4.3 series also added -msse4.2 if you wish to optimize that aspect of FP maths.

下面是一些讨论在比较调谐英特尔编译与海湾合作委员会的一些标志。

Here is some discussion comparing tuning in Intel's compiler versus some gcc flags.

这篇关于GCC优化标记至强?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆