Research on Link Optimization Technology Based on Function Reordering

Function reordering is a common optimization technique that improves program execution efficiency by adjusting function layout in executable files. This study proposes a novel link-time function reordering algorithm that organizes functions based on clustering, taking into account cluster execution frequency and calling relationships. Initially, the perf tool extracts program profile information, which, along with function call relationships and sizes, is used to construct a call graph (CG) for function clustering. After clustering, the algorithm analyzes inter-cluster calling relationships to identify multiple high-frequency hot chains. Functions are then ordered by outputting function names sequentially from the highest-density chain, establishing the final function order. This algorithm was implemented in Binutils' ld linker. Experimental results show that the proposed algorithm increased program IPC by 1.116%, improved Ll cache hit rate by 1.625%, and reduced execution time by 2.888%. The findings demonstrate that the proposed algorithm can significantly improve execution efficiency at the linking stage.

Authors

Institutions

Publication Details

Published
2024-11-08
DOI
https://doi.org/10.1109/isceic63613.2024.10810229
Primary Topic
Simulation and Modeling Applications
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Research on Link Optimization Technology Based on Function Reordering

Yagang Wang, Wenjun Wang
Simulation and Modeling Applications
article

Research on Link Optimization Technology Based on Function Reordering

Yagang Wang, Wenjun Wang
article en

Abstract

Function reordering is a common optimization technique that improves program execution efficiency by adjusting function layout in executable files. This study proposes a novel link-time function reordering algorithm that organizes functions based on clustering, taking into account cluster execution frequency and calling relationships. Initially, the perf tool extracts program profile information, which, along with function call relationships and sizes, is used to construct a call graph (CG) for function clustering. After clustering, the algorithm analyzes inter-cluster calling relationships to identify multiple high-frequency hot chains. Functions are then ordered by outputting function names sequentially from the highest-density chain, establishing the final function order. This algorithm was implemented in Binutils' ld linker. Experimental results show that the proposed algorithm increased program IPC by 1.116%, improved Ll cache hit rate by 1.625%, and reduced execution time by 2.888%. The findings demonstrate that the proposed algorithm can significantly improve execution efficiency at the linking stage.

Xi’an University of Posts and Telecommunications (CN)
Openalex Percentile: Top 71%
Simulation and Modeling Applications
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Research on Link Optimization Technology Based on Function Reordering — Yagang Wang, Wenjun Wang · (2024) | TGRS Research Map | TGRS