Paddle-Lite icon indicating copy to clipboard operation
Paddle-Lite copied to clipboard

[compile]add Oz compile option for clang,test=develop

Open Leonardo-Ding opened this issue 3 years ago • 3 comments

当使用clang编译时,使用-Oz替换-Os编译选项以取得更好优化库体积的效果; 对于develop分支,armv8/c++_shared编译,采用-Os编译,库体积2.0M,采用-Oz编译,库体积1.9M,优化了0.1M的库体积。 armv8/c++_static编译,采用-Os编译,库体积2.4M,采用-Oz编译,库体积2.2M,优化了0.2M的库体积。

Leonardo-Ding avatar Apr 19 '21 07:04 Leonardo-Ding

Thanks for your contribution!

paddle-bot-old[bot] avatar Apr 19 '21 07:04 paddle-bot-old[bot]

https://emscripten.org/docs/optimizing/Optimizing-Code.html image 不知道会不会对性能有影响还是影响比较小呢,可以QA测试一下吗

DannyIsFunny avatar Apr 19 '21 12:04 DannyIsFunny

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

CLAassistant avatar Aug 22 '22 02:08 CLAassistant

Automatically closed by Paddle-bot.

paddle-bot[bot] avatar Mar 05 '24 06:03 paddle-bot[bot]