本文介绍了禁用-msse的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图使用CPU2006运行各种基准测试,看看各种优化在gcc的速度方面做了什么。我熟悉-O1,-O2和-O3,但听说-msse是一个体面的优化。什么是-msse?我还看到-msse是64位架构的默认值,那么如何禁用它来比较使用它和不使用它之间的区别?

I am trying to run various benchmark tests using CPU2006 to see what various optimizations do in terms of speed on gcc. I am familiar with -O1, -O2, and -O3, but have heard that -msse is a decent optimization. What exactly is -msse? I've also seen that -msse is default on a 64 bit architecture, so how do I disable it to compare the difference between using it and not using it?

推荐答案

SSE(http://it.wikipedia.org/wiki/ Streaming_SIMD_Extensions)的名称是从Pentium 3以来存在于处理器中的SSE指令。它们对于某种矢量和浮点计算是快速的。它们在所有64位处理器中都可用,为什么要禁用它们?

SSE (http://it.wikipedia.org/wiki/Streaming_SIMD_Extensions) as the name says are the SSE instructions present in processors since Pentium 3. They are fast for some kind of vectorial and floating point computation. They are available in all 64 bit processors, so why should we disable them?

可以在-msse和-msse2之间进行选择。 SSE2是在SSE上构建的另一个指令集,它增加了其他强大和非常快速的矢量指令。

You can choose between -msse and -msse2. SSE2 are another instruction set built over SSE that add other powerful and very fast vectorial instructions.

Pentium 3有SSE,是一个32位处理器。
SSE2更现代,而Pentium 4,仍然是一个32位处理器,有SSE2。

Pentium 3 did have SSE, and is a 32 bit processor.SSE2 is more modern instead, Pentium 4, that is still a 32 bit processor, have SSE2.

这篇关于禁用-msse的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-26 15:22