Trace and Algebraic Semantics for Partial Store Order Memory Model

  • Junfu Luo*
  • , Lili Xiao
  • , Huibiao Zhu*
  • , Ziqing Su*
  • *Corresponding author for this work

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

Abstract

Contemporary multiprocessor systems often use weak memory models (WMMs), including Partial Store Order (PSO) in some SPARC implementations. PSO relaxes the store-store constraint by allowing individual cores to use a write buffer for different memory locations. This paper employs the Unifying Theories of Programming (UTP) framework to investigate PSO's trace semantics, acting in the denotational semantics style. In this context, a trace is represented as a sequence of snapshots that track changes in registers, write buffers, and shared memory. Our approach generates the complete set of valid execution outcomes, including potential reorderings, while adhering to proper principles. This paper also introduces a set of algebraic laws tailored for PSO utilizing the concept of 'head normal form{\prime}. With the introduction of guarded choice, every program can be represented by head normal form. This representation models program execution in the presence of reorderings within the PSO model. Additionally, we also explores the relationship between trace semantics and algebraic semantics, establishing a connection by deriving trace semantics from algebraic semantics.

Original languageEnglish
Title of host publicationProceedings - 2024 IEEE 48th Annual Computers, Software, and Applications Conference, COMPSAC 2024
EditorsHossain Shahriar, Hiroyuki Ohsaki, Moushumi Sharmin, Dave Towey, AKM Jahangir Alam Majumder, Yoshiaki Hori, Ji-Jiang Yang, Michiharu Takemoto, Nazmus Sakib, Ryohei Banno, Sheikh Iqbal Ahamed
PublisherInstitute of Electrical and Electronics Engineers Inc.
Pages2171-2176
Number of pages6
ISBN (Electronic)9798350376968
DOIs
StatePublished - 2024
Event48th IEEE Annual Computers, Software, and Applications Conference, COMPSAC 2024 - Osaka, Japan
Duration: 2 Jul 20244 Jul 2024

Publication series

NameProceedings - 2024 IEEE 48th Annual Computers, Software, and Applications Conference, COMPSAC 2024

Conference

Conference48th IEEE Annual Computers, Software, and Applications Conference, COMPSAC 2024
Country/TerritoryJapan
CityOsaka
Period2/07/244/07/24

Keywords

  • Algebraic Semantics
  • PSO
  • Trace Semantics
  • UTP (Unifying Theories of Programming)
  • Weak Memory Model

Fingerprint

Dive into the research topics of 'Trace and Algebraic Semantics for Partial Store Order Memory Model'. Together they form a unique fingerprint.

Cite this