计算机科学 > 程序设计语言
[提交于 2024年1月12日]
标题:Weak Memory Demands Model-based Compiler Testing
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:A compiler bug arises if the behaviour of a compiled concurrent program, as allowed by its architecture memory model, is not a behaviour permitted by the source program under its source model. One might reasonably think that most compiler bugs have been found in the decade since the introduction of the C/C++ memory model. We observe that processor implementations are increasingly exploiting the behaviour of relaxed architecture models. As such, compiled programs may exhibit bugs not seen on older hardware. To account for this we require model-based compiler testing. While this observation is not surprising, its implications are broad. Compilers and their testing tools will need to be updated to follow hardware relaxations, concurrent test generators will need to be improved, and assumptions of prior work will need revisiting. We explore these ideas using a compiler toolchain bug we reported in LLVM.
提交历史
来自:Luke Geeson[v1] 2024年1月12日 星期五 15:50:32 UTC