Feature mining for machine learning based compilation optimization

Fengqian Li, Feilong Tang, Yao Shen

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

11 Scopus citations

Abstract

Compilation optimization is critical for software performance. Before a product releases, the most effective algorithm combination should be chosen to minimize the object file size or to maximize the running speed. Compilers like GCC usually have hundreds of optimization algorithms, in which they have complex relationships. Different combinations of algorithms will lead to object files with different performance. Usually developers select the combination manually, but it's unpractical since a combination for one project can't be reused for another one. In order to conquer this difficulty some approaches like iterative search, heuristic search and machine learning based optimization have been proposed. However these methods still need improvements at different aspects like speed and precision. This paper researches machine learning based compilation optimization especially on feature processing which is important for machine learning methods. Program features can be divided into static features and dynamic features. Apart from user defined static features, we design a method to generate lots of static features by template and select best ones from them. Furthermore, we observe that feature value changes during different optimization phases and implement a feature extractor to extract feature values at specific phases and predict optimization plan dynamically. Finally, we implement the prototype on GCC version 4.6 with GCC plugin system and evaluate it with benchmarks. The results show that our system has a 5% average speed up for object file running speed than GCC O3 optimization level.

Original languageEnglish
Title of host publicationProceedings - 2014 8th International Conference on Innovative Mobile and Internet Services in Ubiquitous Computing, IMIS 2014
PublisherInstitute of Electrical and Electronics Engineers Inc.
Pages207-214
Number of pages8
ISBN (Electronic)9781479943319
DOIs
StatePublished - 2014
Externally publishedYes
Event8th International Conference on Innovative Mobile and Internet Services in Ubiquitous Computing, IMIS 2014 - Birmingham, United Kingdom
Duration: 2 Jul 20144 Jul 2014

Publication series

NameProceedings - 2014 8th International Conference on Innovative Mobile and Internet Services in Ubiquitous Computing, IMIS 2014

Conference

Conference8th International Conference on Innovative Mobile and Internet Services in Ubiquitous Computing, IMIS 2014
Country/TerritoryUnited Kingdom
CityBirmingham
Period2/07/144/07/14

Keywords

  • Compiler optimization
  • Feature mining
  • Machine learning

Fingerprint

Dive into the research topics of 'Feature mining for machine learning based compilation optimization'. Together they form a unique fingerprint.

Cite this