GCC配置文件引导优化(PGO)收集哪些信息以及哪些优化使用它? [英] What information does GCC Profile Guided Optimization (PGO) collect and which optimizations use it?

查看:895
本文介绍了GCC配置文件引导优化(PGO)收集哪些信息以及哪些优化使用它?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当启用 -fprofile-generate 时,GCC会收集哪些信息,以及哪种优化实际上使用收集的信息(设置 -fprofile时-use flag)?



我需要引文。我搜索了一段时间,但没有发现任何记录。



有关链接时间优化(LTO)的信息将是一个优点! = 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 - 选项



PS。关于LTO的信息也在该页面上。


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.

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

解决方案

-fprofile-generate enables -fprofile-arcs, -fprofile-values and -fvpt.

-fprofile-use enables -fbranch-probabilities, -fvpt, -funroll-loops, -fpeel-loops and -ftracer

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

PS. Information about LTO also on that page.

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

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆