将大型代码库迁移到C++模块
Migrating large codebases to C++ Modules
摘要:
ROOT有几个与库交互的特性,需要隐式的头包含。这可以通过读取或写入磁盘上的数据或用户在提示符下的操作来触发。通常,头是不可变的,重解析是多余的。C++模块旨在通过提供C++代码的有效磁盘表示来最大限度地减少对相同头内容的重新解析。ROOT已经发布了一个C++模块感知技术预览版,该预览版将成为下一个版本的默认版本。在本文中,我们将总结我们的经验,移植C++模块的LHC实验的软件代码库。我们概述了CMS软件的C++模块迁移的挑战,包括在CMS构建系统中集成C++模块支持。我们还评估了实验预期实现的性能优势。
英文摘要:
ROOT has several features which interact with libraries and require implicit header inclusion. This can be triggered by reading or writing data on disk, or user actions at the prompt. Often, the headers are immutable, and reparsing is redundant. C++ Modules are designed to minimize the reparsing of the same header content by providing an efficient on-disk representation of C++ Code. ROOT has released a C++ Modules-aware technology preview which intends to become the default for the next release. In this paper, we will summarize our experience with migrating C++ Modules to LHC experiment's software code bases. We outline the challenges in C++ Modules migration of the CMS software, including the integration of C++ Modules support in CMS build system. We also evaluate the performance benefits that experiments are expected to achieve.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。