Does gcc 4.8.1 enable sse by default?

六眼飞鱼酱① 提交于 2019-12-02 17:39:26

You can see what optimizations are used by GCC with the following command:

$ gcc -Q --help=target

For instance, on my machine, GCC does not enable sse4.1 by default:

$ gcc -Q --help=target | grep msse4.1
  -msse4.1                              [disabled]

However, it is supported because it appears in /proc/cpuinfo. And indeed, if I ask GCC to optimize the generated code for my machine, it enables sse4.1:

$ gcc -Q --help=target -march=native | grep msse4.1
  -msse4.1                              [enabled]
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!