EUVIMEDEUVIMED entdecken
Open Access · CC BY 4.0

Extending the C/C++ Memory Model with Inline Assembly

Paulo Emílio de Vilhena, Ori Lahav, Viktor Vafeiadis, Azalea Raad

Proceedings of the ACM on Programming Languages · 08.10.2024 · 8 (OOPSLA2) · 1081-1107

DOI: 10.1145/3689749 ↗

Kurz gefasst

Fachartikel in der Zeitschrift Proceedings of the ACM on Programming Languages, online erschienen am 08.10.2024. Verfasst von Paulo Emílio de Vilhena und 3 weiteren Autor:innen. Die Arbeit wurde bisher 2-mal zitiert (Crossref) und nennt 32 Literaturangaben. Der Volltext ist frei zugänglich (Open Access, CC BY 4.0).

AbstractBibliografische AngabenZitierenVerwandte Studien

Abstract (Originalsprache)

Programs written in C/C++ often include inline assembly : a snippet of architecture-specific assembly code used to access low-level functionalities that are impossible or expensive to simulate in the source language. Although inline assembly is widely used, its semantics has not yet been formally studied. In this paper, we overcome this deficiency by investigating the effect of inline assembly on the consistency semantics of C/C++ programs. We propose the first memory model of the C++ Programming Language with support for inline assembly for Intel’s x86 including non-temporal stores and store fences . We argue that previous provably correct compiler optimizations and correct compiler mappings should remain correct under such an extended model and we prove that this requirement is met by our proposed model.

Zitieren

APA

Vilhena, P. E. D., Lahav, O., Vafeiadis, V., & Raad, A. (2024). Extending the C/C++ Memory Model with Inline Assembly. Proceedings of the ACM on Programming Languages, 8(OOPSLA2), 1081-1107. https://doi.org/10.1145/3689749

Vancouver

Vilhena PED, Lahav O, Vafeiadis V, Raad A. Extending the C/C++ Memory Model with Inline Assembly. Proceedings of the ACM on Programming Languages. 2024;8(OOPSLA2):1081-1107. doi:10.1145/3689749

BibTeX
@article{Vilhena2024,
  author = {Vilhena, Paulo Emílio de and Lahav, Ori and Vafeiadis, Viktor and Raad, Azalea},
  title = {Extending the C/C++ Memory Model with Inline Assembly},
  journal = {Proceedings of the ACM on Programming Languages},
  year = {2024},
  volume = {8},
  number = {OOPSLA2},
  pages = {1081--1107},
  doi = {10.1145/3689749}
}
Kostenlos starten →