跳到主要导航 跳到搜索 跳到主要内容

Trace Semantics for C++11 Memory Model

  • Lili Xiao
  • , Huibiao Zhu*
  • , Sini Chen
  • , Mengda He
  • , Shengchao Qin
  • *此作品的通讯作者
  • Donghua University
  • East China Normal University
  • Teesside University
  • Xidian University

科研成果: 期刊稿件 › 文章 › 同行评审

摘要

The C and C++ languages introduced the relaxed-memory concurrency into the language specification for efficiency purposes in 2011. Trace semantics can provide the mathematical foundation for the proposed C++11 memory model, and there is a lack of investigation of trace semantics for C++11.The Promising Semantics (PS) of Kang et al. provides the standard SC-style operational semantics for the C++11 concurrency model, where "SC" refers to "Sequential Consistency". Inspired by PS, in this article we first investigate the trace semantics for the relaxed read and write accesses under C++11, acting in the denotational semantics style. In our semantic model, a trace is in the form of a sequence of snapshots, and the snapshots record the modification in the relevant global or local variables, and the thread view. Moreover, the trace semantics for the release/acquire accesses under C++11 is also explored, based on the separated thread views and newly added message views. When considering this trace model, different accesses bring in their unique snapshots, and make distinguished effects on the production of the sequences. For any given program, the proposed trace semantics in this article produces all the valid traces directly. Furthermore, our trace semantics, together with that for TSO and MCA ARMv8, has the possibility to be the foundation of the meta model of the trace semantics for weak memory models.

源语言英语
期刊论文编号14
期刊Formal Aspects of Computing
卷36
期3
DOI
出版状态已出版 - 5 9月 2024

学术指纹

探究 'Trace Semantics for C++11 Memory Model' 的科研主题。它们共同构成独一无二的学术指纹。

引用此