海湾合作委员会/g++与国际刑事法院
行业软件开发业务哪家更受欢迎?有些人认为 gcc/g++ 在 Linux 上更流行,而 icc 在 Windows 上更流行。还有什么可以选择其中之一吗?
Which is more popular in the industry software development business? Some people argue gcc/g++ is more popular on linux, while icc is more popular on windows. Anything else to choose one over the other?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我预计 gcc/g++ 在开源操作系统上更受欢迎。
MSVC 在 Windows 上会更流行。
对于那些试图从应用程序中提取最后一点性能并且不想在 x86 汇编器中手动优化应用程序瓶颈的人来说,icc 会很受欢迎。
不确定最新版本,但支持 SIMD 指令(如 SSE 和 MMX 等)的早期版本的 icc 有代码确保 SIMD 代码路径仅针对 Intel 品牌的 CPU 执行。所以 AMD 等人。沿着一条慢得多的代码路径。一些人将此行为归因于对非英特尔 CPU 的恶意,更有可能的是 icc 人员懒得测试非英特尔 CPU,并且表现得“安全”/保守。
I'd expect gcc/g++ is more popular on open-source OSes.
MSVC would be more popular on Windows.
icc would be popular for those who are trying to extract every last bit of performance from their app and who don't want to hand-optimize in x86 assembler the bottlenecks in their app.
Not sure about the latest versions, but earlier versions of icc that supported SIMD instructions (like SSE and MMX, etc.) had code to ensure that the SIMD code path was only executed for Intel-branded CPUs. So AMD et al. went along a much slower code path. Some attributed the behaviour to malice towards non-Intel CPUs, more likely is that the icc folks didn't bother to test non-Intel CPUs and were being 'safe'/conservative.
好吧,ICC 自动启用 SSE 优化,而我相信如果我是正确的,则必须设置 gcc 和 g++ 标志才能启用它们。确实没有太大区别。 ICC 还支持一些其他浮点优化。
另外,正如打字错误所说,如果您有一个英特尔处理器并且它对性能至关重要,那么 icc 可能会工作,但您不会注意到 gcc 和 icc 之间的差异,除非您使用大量 FPO。
Well ICC automatically enables SSE optimization while I believe gcc and g++ flags have to be set to enable them if I'm correct. There's really not much difference. ICC also enables some other floating point optimizations.
Also as typo said, if you have an intel processor and it is performance critical then icc would probably work but you wouldnt notice a difference between gcc and icc unless you do heavy FPO.
对于实际编译来说,icc 明显更快——至少在 Linux 上是这样。如果您使用大型源库,那么仅此一点就是使用它的充分理由。
icc is noticably faster for actual compilation - at least on linux. If you work with a large sourcebase, that alone would be a good reason to use it.