ACM Home Page
Please provide us with feedback. Feedback
The semantics of x86-CC multiprocessor machine code
Full text PdfPdf (331 KB)
Source
Annual Symposium on Principles of Programming Languages archive
Proceedings of the 36th annual ACM SIGPLAN-SIGACT symposium on Principles of programming languages table of contents
Savannah, GA, USA
SESSION: Multicore table of contents
Pages 379-391  
Year of Publication: 2009
ISBN:978-1-60558-379-2
Also published in ...
Authors
Susmit Sarkar  University of Cambridge, Cambridge, United Kingdom
Peter Sewell  University of Cambridge, Cambridge, United Kingdom
Francesco Zappa Nardelli  INRIA, Rocquencourt, France
Scott Owens  University of Cambridge, Cambridge, United Kingdom
Tom Ridge  University of Cambridge, Cambridge, United Kingdom
Thomas Braibant  INRIA, Rocquencourt, France
Magnus O. Myreen  Unviersity of Cambridge, Cambridge, United Kingdom
Jade Alglave  INRIA, Rocquencourt, France
Sponsors
ACM: Association for Computing Machinery
SIGACT: ACM Special Interest Group on Algorithms and Computation Theory
SIGPLAN: ACM Special Interest Group on Programming Languages
Publisher
ACM  New York, NY, USA
Bibliometrics
Downloads (6 Weeks): 35,   Downloads (12 Months): 237,   Citation Count: 2
Additional Information:

abstract   references   cited by   index terms   collaborative colleagues  

Tools and Actions: Request Permissions Request Permissions    Review this Article  
DOI Bookmark: Use this link to bookmark this Article: http://doi.acm.org/10.1145/1480881.1480929
What is a DOI?

ABSTRACT

Multiprocessors are now dominant, but real multiprocessors do not provide the sequentially consistent memory that is assumed by most work on semantics and verification. Instead, they have subtle relaxed (or weak) memory models, usually described only in ambiguous prose, leading to widespread confusion.

We develop a rigorous and accurate semantics for x86 multiprocessor programs, from instruction decoding to relaxed memory model, mechanised in HOL. We test the semantics against actual processors and the vendor litmus-test examples, and give an equivalent abstract-machine characterisation of our axiomatic memory model. For programs that are (in some precise sense) data-race free, we prove in HOL that their behaviour is sequentially consistent. We also contrast the x86 model with some aspects of Power and ARM behaviour.

This provides a solid intuition for low-level programming, and a sound foundation for future work on verification, static analysis, and compilation of low-level concurrent code.


REFERENCES

Note: OCR errors may be found in this Reference List extracted from the full text article. ACM has opted to expose the complete List rather than only correct and linked references.

 
1
A formal specification of Intel Itanium processor family memory ordering. http://developer.intel.com/design/itanium/downloads/251429.htm.
 
2
 
3
Linux kernel traffic, 1999. http://www.kernel-traffic.org/kernel-traffic/kt19991220_47.txt.
 
4
AMD64 Architecture Programmer's Manual. Advanced Micro Devices, Sept. 2007. (3 vols).
 
5
Intel 64 and IA-32 Architectures Software Developer's Manual. Intel Corporation, April (vol 1,2A,2B; rev.27), Feb. (vol.3A,3B; rev.26) 2008.
 
6
The semantics of multiprocessor machine code, 2008. www.cl.cam.ac.uk/users/pes20/weakmemory.
 
7
 
8
9
 
10
M. Ahamad, G. Neiger, J. Burns, P. Kohli, and P. Hutto. Causal memory: Definitions, implementation, and programming. Distributed Computing, 9(1):37--49, 1995.
 
11
ARM. ARM Architecture Reference Manual (ARMv7-A and ARMv7-R edition). 2008. Available from ARM.
 
12
D. Aspinall and J. Sevcik. Formalising Java's data race free guarantee. In Proc. TPHOLs, LNCS, 2007.
13
14
 
15
16
 
17
18
 
19
M. Gordon. Memory access semantics for a multiprocessor instruction set. Unpublished note (c.1993) www.cl.cam.ac.buffering in multiprocessors. In ISCA, 1986.
 
20
L. Higham, L. A. Jackson, and J. Kawash. Programmer-centric conditions for itanium memory consistency. In Proc. ICDCN, 2006.
 
21
The HOL 4 system. http://hol.sourceforge.net/.
 
22
Intel. Intel 64 architecture memory ordering white paper, 2007. SKU 318147-001.
 
23
 
24
D. Lea. The JSR-133 cookbook for compiler writers. gee.cs.oswego.edu/dl/jmm/cookbook.html.
 
25
L.Higham, J.Kawash, and N. Verwaal. Defining and comparing memory consistency models. In PDCS, 1997.
 
26
27
28
29
 
30
 
31
Y. Yang, G. Gopalakrishnan, G. Lindstrom, and K. Slind. Nemos: A framework for axiomatic and executable specifications of memory consistency models. In IPDPS, 2004.


Collaborative Colleagues:
Susmit Sarkar: colleagues
Peter Sewell: colleagues
Francesco Zappa Nardelli: colleagues
Scott Owens: colleagues
Tom Ridge: colleagues
Thomas Braibant: colleagues
Magnus O. Myreen: colleagues
Jade Alglave: colleagues