A Language Approach to Fine-Grained Microarchitectural Observation
Proceedings of the ACM on Programming Languages · 01.10.2026 · 10 (OOPSLA2) · 1103-1131
DOI: 10.1145/3839486 ↗Kurz gefasst
Fachartikel in der Zeitschrift Proceedings of the ACM on Programming Languages, online erschienen am 01.10.2026. Verfasst von Guokai Chen und 3 weiteren Autor:innen. Die Arbeit wurde bisher 1-mal zitiert (Crossref) und nennt 85 Literaturangaben. Der Volltext ist frei zugänglich (Open Access, CC BY 4.0). Gefördert von: Swiss National Science Foundation.
Abstract (Originalsprache)
Analyzing, understanding, and validating the performance of modern processors present significant challenges. These stem from two primary issues. First, it is difficult to construct “performance tests” that can test precisely scoped hypotheses about microarchitectural behavior. Second, it is difficult to make sense of performance measurements: hardware teams see too many low-level events that they struggle to map back to the tested programs, and software developers and security researchers can only observe coarse-grained performance counters. This paper addresses both challenges with a unified programming language approach that we prototype in a framework named HT. To overcome the test-construction problem, our insight is that a broad range of microarchitectural effects are triggered by a specific software address layout. We introduce a DSL that enables specifying desired microarchitectural effects of a program through specifying its address layout, separately from its functional behavior. This separation is achieved using an SMT solver to compute a suitable instruction and data layout. To overcome the observability challenge, we systematically link high-level software patterns down to raw hardware simulation outputs. We introduce flexible event-tracing constructs designed to construct custom, multi-cycle higher-level events from (single-cycle) low-level event logs, effectively acting as the bridge that connects software execution patterns to low-level hardware events. We demonstrate HT’s utility on XiangShan, a production-grade open-source RISC-V processor, through three case studies: analyzing the performance impact of the Zicond RISC-V extension, reproducing subtle microarchitectural attacks, and characterizing the branch prediction behavior of Lua, an interpreted language.
Förderung
- Swiss National Science Foundation
Zitieren
APA
Chen, G., Arrufat, S. S., Pit-Claudel, C., & Bourgeat, T. (2026). A Language Approach to Fine-Grained Microarchitectural Observation. Proceedings of the ACM on Programming Languages, 10(OOPSLA2), 1103-1131. https://doi.org/10.1145/3839486
Vancouver
Chen G, Arrufat SS, Pit-Claudel C, Bourgeat T. A Language Approach to Fine-Grained Microarchitectural Observation. Proceedings of the ACM on Programming Languages. 2026;10(OOPSLA2):1103-1131. doi:10.1145/3839486
BibTeX
@article{Chen2026,
author = {Chen, Guokai and Arrufat, Sergi Soler and Pit-Claudel, Clément and Bourgeat, Thomas},
title = {A Language Approach to Fine-Grained Microarchitectural Observation},
journal = {Proceedings of the ACM on Programming Languages},
year = {2026},
volume = {10},
number = {OOPSLA2},
pages = {1103--1131},
doi = {10.1145/3839486}
}
EUVIMED