ClangOz: Parallel constant evaluation of C++ map and reduce operations
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.
Authors
- Paul Keir (ORCID: https://orcid.org/0000-0002-4781-9377)
- Andrew Gozillon (ORCID: https://orcid.org/0000-0001-7558-7166)
Institutions
- University of the West of Scotland (GB)
Publication Details
- Journal
- Journal of Computer Languages
- Published
- 2024-10-10
- DOI
- https://doi.org/10.1016/j.cola.2024.101298
- Primary Topic
- Parallel Computing and Optimization Techniques
- Type
- article
- Field-Weighted Citation Impact
- 0.00
Funders
- Royal Society of Edinburgh