Skip to main navigation Skip to search Skip to main content

ClangOz: parallel constant evaluation of C++ map and reduce operations

  • Paul Keir*
  • , Andrew Gozillon
  • *Corresponding author for this work

    Research output: Contribution to journalArticlepeer-review

    19 Downloads (Pure)

    Abstract

    Interest in metaprogramming, reflection, and compile-time evaluation continues to inspire and foster innovation among the users and designers of the C++ programming language. Regretably, the impact on compile-times of such features can be significant; and outside of build systems, multi-core parallelism is unable to bring down compilation times of individual translation units. We present ClangOz, a novel Clang-based research compiler that addresses this issue by evaluating annotated constant expressions in parallel, thereby reducing compilation times. Prior benchmarks analysed parallel map operations, but were unable to consider reduction operations. Thus we also introduce parallel reduction functionality, alongside two additional benchmark programs.
    Original languageEnglish
    JournalJournal of Computer Languages
    Volume81
    DOIs
    Publication statusPublished - Nov 2024

    Keywords

    • compiler
    • parallelism
    • C++
    • partial evaluation

    Fingerprint

    Dive into the research topics of 'ClangOz: parallel constant evaluation of C++ map and reduce operations'. Together they form a unique fingerprint.

    Cite this