arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2210.07311cs.NIcs.PL
收藏

原生移动应用程序的链接器代码大小优化

Linker Code Size Optimization for Native Mobile Applications

Gai Liu, Umar Farooq, Chengyan Zhao, Xia Liu, Nian Sun

摘要:

现代移动应用程序的二进制大小增长迅速,这限制了用户增长并阻碍了现有用户的更新。因此,减少二进制文件的大小对于应用程序开发人员来说非常重要。最近的研究表明,通过重新调用程序的链接中间表示上的某些编译器优化,可以使用链接时代码大小优化。然而,这样的方法通常会导致显著的构建时间开销,并且需要对现有构建管道进行侵入性更改。在本文中,我们提出了几种新的优化技术,不需要显着定制的构建管道,并减少二进制文件的大小与低构建时间开销。与在链接时重新调用编译器相反,我们在链接器内传递优化时直接执行真正的链接器优化。这使得更多的优化机会,如预先编译的库,以前的工作往往不能优化。我们在几个商业iOS应用程序上评估了我们的技术,包括NewsFeedApp、ShortVideoApp和CollaborationSuiteApp,每个应用程序都有数亿的日活跃用户。我们的技术在三个商业应用程序中平均实现了18.4%的二进制大小减少,而没有任何用户可感知的性能下降。

英文摘要:

Modern mobile applications have grown rapidly in binary size, which restricts user growth and hinders updates for existing users. Thus, reducing the binary size is important for application developers. Recent studies have shown the possibility of using link-time code size optimizations by re-invoking certain compiler optimizations on the linked intermediate representation of the program. However, such methods often incur significant build time overhead and require intrusive changes to the existing build pipeline. In this paper, we propose several novel optimization techniques that do not require significant customization to the build pipeline and reduce binary size with low build time overhead. As opposed to re-invoking the compiler during link time, we perform true linker optimization directly as optimization passes within the linker. This enables more optimization opportunities such as pre-compiled libraries that prior work often could not optimize. We evaluate our techniques on several commercial iOS applications including NewsFeedApp, ShortVideoApp, and CollaborationSuiteApp, each with hundreds of millions of daily active users. Our techniques on average achieve 18.4% binary size reduction across the three commercial applications without any user-perceivable performance degradations.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑