GCC简档引导优化(PGO) [英] GCC Profile Guided Optimization (PGO)
问题描述
当我启用 -fprofile-generate
并且哪个优化实际上使用收集的信息时(当设置 -fprofile时),GCC收集哪些信息-use
flag)?
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
PS。关于该页面上的LTO的信息。
PS. Information about LTO also on that page.
这篇关于GCC简档引导优化(PGO)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!