GCC 4.7.0 开始支持 LTO(链接时优化)
来源:互联网 发布:软件测试 量化 考核 编辑:程序博客网 时间:2024/05/18 02:01
1、LTO概述
LTO: (link-time optimizations) 使整个程序在链接过程中实现二进程优化,降低目标码的体积,例如:一个LTO的内核可以减少超过10%的尺寸大小,并且内核优化后比常规的内核快百分之几,但是它目前的问题是需要占用更多的 系统内存 以及 更长的编译时间。
2、LTO使用(摘自:https://gcc.gnu.org/wiki/LinkTimeOptimization)
There are two main flags that enable LTO functionality.
-flto: This uses the main LTO features. When given several source files on the command line, it will write out the IL for each of them and then launch lto1 to load every function in every file. The reconstructed cgraph is then optimized as usual.
$ gcc -flto -c f1.c $ gcc -flto -c f2.c $ gcc -flto -o f f1.o f2.o
or$ gcc -flto -o f f1.c f2.c
-fwhopr: This is similar to -flto but it splits compilation to achieve scalability. It is intended to handle extremely large programs whose call graphs do not fit in memory. See the design document for details.
- GCC 4.7.0 开始支持 LTO(链接时优化)
- What is GCC lto wrapper?
- llvm+clang 添加 LTO(Link Time Optimization) 支持
- gcc -0优化分析
- Webkit开始支持HTML5的noreferrer链接属性
- gcc编译器优化项和链接操作的具体工作
- gcc链接
- LTO技术
- 磁带库LTO
- 支持C++0x的GCC安装
- gcc优化
- GCC 预处理 编译 汇编 链接全过程及其含义 程序的开始不是main函数
- 开始gcc之旅
- gcc/g++ 编译时的一个优化
- gcc 动态链接库
- gcc链接脚本
- gcc链接外部函数库
- GCC链接脚本
- Java 中的格式化输出
- 初体验wxWidgets
- excel写进数据库
- c++学习笔记5,多重继承中派生类的构造函数与析构函数的调用顺序(二)
- 系统底层的锁到底是个是东东
- GCC 4.7.0 开始支持 LTO(链接时优化)
- iOS开发——戏说旋屏
- 几个数据分析中常用到的excel函数
- iOS晒作业:涂鸦pdf
- flex 圆饼图的简单实现——xml数据
- LeetCode :Longest Palindromic Substring
- Objective-C ios7 ble-transfer code tree
- 函数指针——求数组最大值和和
- 做大“入口”生意的豌豆荚