The way to minimize the C++ binary file compiled by arm g++
来源:互联网 发布:淘宝连衣裙店铺 编辑:程序博客网 时间:2024/06/15 10:23
CFLAGS += -Os
It means optimize for space.CFLAGS += -ffunction-sections -fdata-sections
It means save the function and data to its own sections.LFLAGS += –gc-sections
It means enable garbage collection for unused sections.-fno-rtti -fno-exceptions
Disable the RTTI and exception of cpp.LFLAGS += –specs=nano.specs
Use libc_nano.a libstdc++_nano.a instead of libc.a libstdc++.a
But this one will lead to error and currently no perfect solution was found.
reference:
http://www.stmcu.org/module/forum/thread-603791-1-1.html
阅读全文
0 0
- The way to minimize the C++ binary file compiled by arm g++
- The standard way to recover the lost file.
- the way to expert
- The way to CLI
- the way to happiness
- The way to go !
- Where is the way to 5G wireless?
- The most elegant way to print a Binary Tree
- the .pyc file was compiled Python version
- use notifyicon to minimize the image onto the toolbar
- The "right way" to handle file download in PHP
- Minimize The Difference
- Hdoj Minimize The Difference
- get paid from、 to the taste of、expand my horizons、available、by the way
- The way to describe bug.
- The quick way to CPIO
- The quick way to TAR
- the way to find love
- 移动前端开发之viewport的深入理解
- HDU 1221 Rectangle and Circle(判定圆与矩形是否相交)
- 2017-09-08 LeetCode_009 Palindrome Number
- vue-cli#2.0项目结构分析
- iOS JS 交互之利用系统JSContext实现 JS调用oc方法
- The way to minimize the C++ binary file compiled by arm g++
- 将spawn-fcgi程序管理与fastcgi程序库libfcgi统一封装成库
- LINUX6 上搭建DNS服务
- php 删除服务器指定目录图片
- c++ 自己的计划和想法
- Beautiful Soup使用介绍
- C3D-tensorflow(1)
- Rightmost Digit
- GPU环境搭建完后重启Ubuntu系统,无限登录问题