GCC 配置文件引导优化 (PGO) 收集哪些信息以及哪些优化使用这些信息?

What information does GCC Profile Guided Optimization (PGO) collect and which optimizations use it?(GCC 配置文件引导优化 (PGO) 收集哪些信息以及哪些优化使用这些信息?)
本文介绍了GCC 配置文件引导优化 (PGO) 收集哪些信息以及哪些优化使用这些信息?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

问题描述

当我启用 -fprofile-generate 时 GCC 会收集哪些信息,哪些优化实际上使用了收集的信息(设置 -fprofile-use 标志时)?

Which information does GCC collect when I enable -fprofile-generate and which optimization does in fact uses the collected information (when setting the -fprofile-use flag) ?

我需要在这里引用.我已经搜索了一段时间,但没有找到任何记录.

I need citations here. I've searched for a while but didn't found anything documented.

有关链接时间优化 (LTO) 的信息将是一个加分项!=D

Information regarding link-time optimization (LTO) would be a plus! =D

推荐答案

-fprofile-generate 启用 -fprofile-arcs, -fprofile-values-fvpt.

-fprofile-use 启用 -fbranch-probabilities-fvpt-funroll-loops、<代码>-fpeel-loops 和 -ftracer

来源:http://gcc.gnu.org/onlinedocs/gcc-4.7.2/gcc/Optimize-Options.html#Optimize-Options

附注.该页面上还有关于 LTO 的信息.

PS. Information about LTO also on that page.

这篇关于GCC 配置文件引导优化 (PGO) 收集哪些信息以及哪些优化使用这些信息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

相关文档推荐

Unable to access non-const member functions of objects in C++ std::set(无法访问 C++ std::set 中对象的非常量成员函数)
Constructing std::function argument from lambda(从 lambda 构造 std::function 参数)
STL BigInt class implementation(STL BigInt 类实现)
Sync is unreliable using std::atomic and std::condition_variable(使用 std::atomic 和 std::condition_variable 同步不可靠)
Move list element to the end in STL(在 STL 中将列表元素移动到末尾)
Why is overloading operatoramp;() prohibited for classes stored in STL containers?(为什么禁止对存储在 STL 容器中的类重载 operatoramp;()?)