Skip to main content

Multi-objective Exploration for Compiler Optimizations and Parameters

  • Conference paper
Multi-disciplinary Trends in Artificial Intelligence (MIWAI 2014)

Part of the book series: Lecture Notes in Computer Science ((LNAI,volume 8875))

Abstract

Identifying the suitable set of optimization options and determining nearly optimal values for the compiler parameter set in modern day compilers is a combinatorial problem. These values not only depend on the underlying target architecture and application source, but also on the optimization objective. Standard optimization options provide inferior solutions and also often specific to a particular optimization objective. Most common requirement of the current day systems is to optimize with multiple objectives, especially among average execution time, size and power. In this paper we apply Genetic Algorithm using Weighted Cost Function to obtain the best set of optimization options and optimal parameter set values for the multi-objective optimization of average execution time and code size. The effectiveness of this approach is demonstrated with the benchmark programs from SPEC 2006 benchmark suite. It is observed that the results obtained with parameter tuning and optimization option selection are better or equal to the results obtained with ‘-Ofast’ option in terms of execution time and at the same time equal to ’-Os’ option in terms of code size.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. Haneda, M., Knijnenburg, P.M.W., Wijshoff, H.A.G.: Automatic Selection of Compiler Options using Non-Parametric Inferential statistics. In: 14th International Conference on Parallel Architectures and Compilation Techniques (PACT 2005) (2005)

    Google Scholar 

  2. Adve, V.: The Next Generation of Compilers. In: Proc. of CGO (2009)

    Google Scholar 

  3. Duranton, M., Black-Schaffer, D., Yehia, S., De Bosschere, K.: Computing Systems: Research Challenges Ahead The HiPEAC Vision 2011/2012

    Google Scholar 

  4. Kulkarni, P.A., Hines, S.R., Whalley, D.B., et al.: Fast and Efficient Searches for Effective Optimization-phase Sequences. Transactions on Architecture and Code Optimization (2005)

    Google Scholar 

  5. Leather, H., O’Boyle, M., Worton, B.: Raced Profiles: Efficient Selection of Competing Compiler Optimizations. In: Proc. of LCTES (2009)

    Google Scholar 

  6. Agakov, F., Bonilla, E., Cavazos, J., et al.: Using Machine Learning to Focus Iterative Optimization. In: Proc. of CGO (2006)

    Google Scholar 

  7. Cooper, K.D., Schielke, P.J., Subramanian, D.: Optimizing for Reduced Code Space using Genetic Algorithms. SIGPLAN Not. 34(7) (1999)

    Google Scholar 

  8. Khedkar, U., Govindrajan, R.: Compiler Analysis and Optimizations: What is New? In: Proc. of Hipc (2003)

    Google Scholar 

  9. Beszédes, Á., Gergely, T., Gyimóthy, T., Lóki, G., Vidács, L.: Optimizing for Space: Measurements and Possibilities for Improvement. In: Proc. of GCC Developers Summit (2003)

    Google Scholar 

  10. GCC, the GNU Compiler Collection - online documentation, http://gcc.gnu.org/onlinedocs/

  11. Novillo, D.: Performance Tuning with GCC. Red Hat Magazine (September 2005)

    Google Scholar 

  12. SPEC-Standard Performance Evaluation Corporation, http://www.spec.org/cpu2006

  13. Haupt, R.L., Haupt, S.E.: Practical Genetic Algorithms. Wiley Interscience (2004)

    Google Scholar 

  14. Timothy Marler, R., Arora, J.S.: The weighted sum method for multi-objective optimization: New insights. Journal on Structural and Multidisciplinary Optimization (2009), doi:10.1007/s00158-009-0460-7

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2014 Springer International Publishing Switzerland

About this paper

Cite this paper

Chebolu, N.A.B.S., Wankar, R. (2014). Multi-objective Exploration for Compiler Optimizations and Parameters. In: Murty, M.N., He, X., Chillarige, R.R., Weng, P. (eds) Multi-disciplinary Trends in Artificial Intelligence. MIWAI 2014. Lecture Notes in Computer Science(), vol 8875. Springer, Cham. https://doi.org/10.1007/978-3-319-13365-2_3

Download citation

  • DOI: https://doi.org/10.1007/978-3-319-13365-2_3

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-319-13364-5

  • Online ISBN: 978-3-319-13365-2

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics