减小目标文件大小的方法
摘要:除了最基本的压缩和去除调试信息外,还有 1 LTO(链接时优化,从GCC 4.7.0 开始支持) 2 -ffunction-sections, -fdata-sections配合--gc-sections,每个函数和变量形成单独的section,再去除没有被引用的。(仍然保留必要系统库,http:/
阅读全文
posted @ 2017-09-12 11:02
posted @ 2017-09-12 11:02
posted @ 2017-09-05 15:41
posted @ 2017-09-05 15:25