简体   繁体   English

在Linux x86_64上编译llvm:关于优化标志的建议?

[英]compiling llvm on linux x86_64: suggestions on optimization flags?

I am compiling llvm v3.0 on a linux x86_64 on an intel double core and I would like to have some feedback on the optimization flags that need to be specified. 我正在intel双核操作系统上的linux x86_64上编译llvm v3.0,我想对需要指定的优化标志有一些反馈。 I am compiling with gcc and I would start with '-O3', but I would like to know if there are any other flags that you recommend - maybe also architecture dependent. 我正在使用gcc进行编译,并且我将从'-O3'开始,但是我想知道是否还有其他值得推荐的标志-可能还取决于体系结构。

thanks 谢谢

In case you are going to use llvm on the same machine as you are compiling it, I suggest 如果您要在编译它的同一台计算机上使用llvm,我建议

-O3 -march=native -mtune=native

To enable all supported features of your cpu eg sse,avx,… 要启用cpu的所有受支持的功能,例如sse,avx,…

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM