arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 1904.08555cs.PL
收藏

ClangJIT:使用即时编译增强C++

ClangJIT: Enhancing C++ with Just-in-Time Compilation

Hal Finkel, David Poliakoff, David F. Richards

摘要:

C++程序设计语言不仅是高性能计算生态系统的基石,而且已被证明是可移植并行编程框架的成功基础。众所周知,C++程序员使用模板来专门化算法,从而允许编译器为特定参数、数据结构等生成高效的代码。这种能力仅限于在编译应用程序时可以识别的专门化,并且在许多关键情况下,编译所有潜在相关的专门化是不切实际的。ClangJIT提供了一个集成良好的C++语言扩展,允许在程序执行期间进行基于模板的专门化。这种能力已被实现用于大规模的应用程序,我们证明,即时编译为基础的动态专业化可以集成到应用程序中,往往需要最小的变化(或没有变化)的应用程序本身,提供显着的性能改进,程序员的生产力提高,并减少编译时间。

英文摘要:

The C++ programming language is not only a keystone of the high-performance-computing ecosystem but has proven to be a successful base for portable parallel-programming frameworks. As is well known, C++ programmers use templates to specialize algorithms, thus allowing the compiler to generate highly-efficient code for specific parameters, data structures, and so on. This capability has been limited to those specializations that can be identified when the application is compiled, and in many critical cases, compiling all potentially-relevant specializations is not practical. ClangJIT provides a well-integrated C++ language extension allowing template-based specialization to occur during program execution. This capability has been implemented for use in large-scale applications, and we demonstrate that just-in-time-compilation-based dynamic specialization can be integrated into applications, often requiring minimal changes (or no changes) to the applications themselves, providing significant performance improvements, programmer-productivity improvements, and decreased compilation time.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑