Dynamic Function Specialization

Arif Ali Ap 1, 2 Erven Rohou 2, 1
1 PACAP - Pushing Architecture and Compilation for Application Performance
Inria Rennes – Bretagne Atlantique , IRISA_D3 - ARCHITECTURE
Abstract : 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.
Document type :
Conference papers
Complete list of metadatas

Cited literature [19 references]  Display  Hide  Download

https://hal.inria.fr/hal-01597880
Contributor : Erven Rohou <>
Submitted on : Thursday, September 28, 2017 - 9:25:48 PM
Last modification on : Thursday, July 18, 2019 - 9:46:01 PM
Long-term archiving on : Friday, December 29, 2017 - 4:17:45 PM

File

SAMOS_2017.pdf
Files produced by the author(s)

Identifiers

Citation

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⟩

Share

Metrics

Record views

408

Files downloads

262