The increasing sizes of modern applications significantly hinder user acquisition and updates,particularly in computing environments constrained by memory and storage capacities.To address this challenge,our article p...The increasing sizes of modern applications significantly hinder user acquisition and updates,particularly in computing environments constrained by memory and storage capacities.To address this challenge,our article presents a novel assembly code optimization framework aimed at reducing application size.Unlike traditional compiler-based optimizations that require intricate knowledge of compiler architectures and are tightly integrated within specific toolchains,our approach operates independently of compiling modules at the assembly code level,offering a universal solution applicable across various computing environments.This decoupled design allows for substantial code size reductions without sacrificing functionality or performance.By taking RISC-V ISA as a case study,the experimental results show that our approach can outperform the default optimization levels(e.g.,‘-Oz’and‘-O3’),with an improvement of up to 6% in code size reduction.Our findings present a practical and effective strategy for code size optimization,particularly beneficial for memory-constrained embedded systems and storage-sensitive mobile devices,thereby facilitating broader application accessibility and enhanced update processes.展开更多
文摘The increasing sizes of modern applications significantly hinder user acquisition and updates,particularly in computing environments constrained by memory and storage capacities.To address this challenge,our article presents a novel assembly code optimization framework aimed at reducing application size.Unlike traditional compiler-based optimizations that require intricate knowledge of compiler architectures and are tightly integrated within specific toolchains,our approach operates independently of compiling modules at the assembly code level,offering a universal solution applicable across various computing environments.This decoupled design allows for substantial code size reductions without sacrificing functionality or performance.By taking RISC-V ISA as a case study,the experimental results show that our approach can outperform the default optimization levels(e.g.,‘-Oz’and‘-O3’),with an improvement of up to 6% in code size reduction.Our findings present a practical and effective strategy for code size optimization,particularly beneficial for memory-constrained embedded systems and storage-sensitive mobile devices,thereby facilitating broader application accessibility and enhanced update processes.