UR Research (University of Rochester) · 2007 · 59 citations · 15 references
Open access
ComputingComputer EngineeringComputer ScienceCompilersComputer ArchitectureProgramming LanguagesApplication Programming InterfacesCode GenerationCompiler Back EndsCompiler ConstructionVirtual MemoryCode InstrumentationCompiler DesignCompiler Front-end SupportCompiler SupportCompiler-based GenerationCross-compilationTransactional CallsTransactional Memory
Transactional memory dramatically reduces the complexity of writing concurrent code. Yet, seamless integration of transactional constructs in application code typically comes with a significant performance penalty. Recent studies have shown that compiler support allows producing highly efficient STM-based applications without putting the hassle on the programmer. So far, STM integration has been partially implemented in custom, proprietary compiler infrastructures. In this paper, we propose and evaluate the use of the LLVM open compiler framework to generate efficient concurrent applications using word-based STM libraries. Since LLVM uses the GCC compiler suite as front-end, it can process code written in C or C++ (with partial support for other languages). We also present a tool that allows ``transactifying'' assembly code and can complement LLVM for legacy code and libraries. Experiments using a lightweight C word-based STM library show that LLVM integration performs as well as hand-optimized calls to the STM library and better than assembly code instrumentation of the application code.
15
Chi-Keung Luk, Robert Cohn, Robert Muth et al. · ACM SIGPLAN Notices · 2005 · 3.2K citations
Nicholas Nethercote, Julian Seward · 2007 · 2.3K citations
Amitabh Srivastava, Alan Eustace · 1994 · 1K citations · Full text
Software transactional memory for dynamic-sized data structures
Maurice Herlihy, Victor Luchangco, Mark Moir et al. · 2003 · 999 citations
Language support for lightweight transactions
Tim Harris, Keir Fraser · ACM SIGPLAN Notices · 2014 · 638 citations