One ELF Section per Function

https://blog.csdn.net/iceiilin/article/details/6091575

因此,可以得出,选项One ELF Section per Function的主要功能是对冗余函数的优化。通过这个选项,可以在最后生成的二进制文件中将冗余函数排除掉(虽然其所在的文件已经参与了编译链接),以便最大程度地优化最后生成的二进制代码。

而该选项实现的机制是将每一个函数作为一个优化的单元,而并非整个文件作为参与优化的单元。

选项One ELF Section per Function所具有的这种优化功能特别重要,尤其是在对于生成的二进制文件大小有严格要求的场合。人们习惯将一系列接口函数放在一个文件里,然后将其整个包含在工程中,即使这个文件将只有一个函数被用到。这样,最后生成的二进制文件中就有可能包含众多的冗余函数,造成了宝贵存储空间的浪费。

The One ELF Section per Function option tells the compiler to put all functions into their own individual ELF

sections. This allows the linker to remove unused functions.

An ELF code section typically contains the code for a number of functions. The linker is normally only able to remove

unused ELF sections, not unused functions. An ELF section can only be removed if all its contents are unused.

Therefore, splitting each function into its own ELF section allows the compiler to easily identify which ones are unused,

and remove them.

Selecting this option increases the time required to compile your code, but results in improved performance.

最新文章

  1. CSharpGL(37)创建和使用VBO的最佳方式
  2. PHPer不能不看的50个细节!
  3. workflow createPath
  4. BZOJ 2768: [JLOI2010]冠军调查 最小割
  5. android studio引入第三方包记录
  6. 使用ssh协议挂载远程文件目录
  7. SPOJ DQUERY 求区间内不同数的个数 主席树
  8. _js day12
  9. 用函数式的 Swift 实现图片转字符画的功能
  10. WPF个人助手更新
  11. 《深入理解java虚拟机》 - 需要一本书来融汇贯通你的经验(下)
  12. seaJS 模块加载过程分析
  13. TensorFlow Serving-TensorFlow 服务
  14. git指令详解总结
  15. web漏洞扫描工具AWVS使用
  16. JQ-总结
  17. laravel 服务容器实例——深入理解IoC模式
  18. kali linux安装及配置
  19. java常用的Utils写法
  20. 第四节:Windows系统安装时BIOS设置及注意

热门文章

  1. 速石科技携HPC混合云平台亮相AWS技术峰会2019上海站
  2. Js字符串按数量分组
  3. 性能测试-详细的 TPS 调优笔记
  4. 【笔记】java并发编程实战
  5. javaweb-codereview 学习记录-2
  6. java效率工具 Lombok
  7. 团队作业-Alpha版本发布2
  8. Python3实现发送邮件和发送短信验证码
  9. pycharm2019破解
  10. 搭建本地测试es集群