Linker Code Size Optimization for Native Mobile Applications
Gai Liu, Umar Farooq, Chengyan Zhao, Xia Liu, Nian Sun

TL;DR
This paper introduces linker-based code size optimization techniques for native mobile apps that significantly reduce binary size with minimal build time overhead, without requiring major changes to existing build pipelines.
Contribution
It presents novel linker optimization methods that operate within the linker, enabling size reduction and optimization of pre-compiled libraries without extensive build pipeline modifications.
Findings
Achieved 18.4% average binary size reduction on commercial iOS apps.
No significant performance degradation observed.
Techniques applicable to large-scale, real-world applications.
Abstract
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…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsGreen IT and Sustainability · Parallel Computing and Optimization Techniques · Software System Performance and Reliability
