Dynamic Function Specialization - Archive ouverte HAL Access content directly
Conference Papers Year : 2018

Dynamic Function Specialization

(1, 2) , (2, 1)


Function specialization is a compilation technique that consists in optimizing the body of a function for specific values of an argument. Different versions of a function are created to deal with the most frequent values of the arguments, as well as the default case. Compilers can do a better optimization with the knowledge of run-time behaviour of the program. Static compilers, however, can hardly predict the exact value/behaviour of arguments, and even profiling collected during previous runs is never guaranteed to capture future behaviour. We propose a dynamic function specialization technique, that captures the actual values of arguments during execution of the program and, when profitable, creates specialized versions and include them at runtime. Our approach relies on dynamic binary rewriting. We present the principles and implementation details of our technique, analyze sources of overhead, and present our results.
Fichier principal
Vignette du fichier
SAMOS_2017.pdf (478.12 Ko) Télécharger le fichier
Origin : Files produced by the author(s)

Dates and versions

hal-01597880 , version 1 (28-09-2017)



Arif Ali Ap, Erven Rohou. Dynamic Function Specialization. International Conference on Embedded Computer Systems: Architectures, MOdeling and Simulation, Jul 2017, Pythagorion, Samos, Greece. pp.8, ⟨10.1109/SAMOS.2017.8344624⟩. ⟨hal-01597880⟩
239 View
635 Download



Gmail Facebook Twitter LinkedIn More