Articles

Efficient Code Generation from SHIM Models

Edwards, Stephen A.; Tardieu, Olivier

Programming concurrent systems is substantially more difficult than programming sequential systems, yet most embedded systems need concurrency. We believe this should be addressed through higher-level models of concurrency that eliminate many of the usual challenges, such as nondeterminism arising from races. The shim model of computation provides deterministic concurrency, and there already exist ways of implementing it in hardware and software. In this work, we describe how to produce more efficient C code from shim systems. We propose two techniques: a largely mechanical one that produces tail-recursive code for simulating concurrency, and a more clever one that statically analyzes the communication pattern of multiple processes to produce code with far less overhead. Experimentally, we find our tail-recursive technique produces code that runs roughly twice as fast as a baseline; our statically-scheduled code can run up to twelve times faster.

Subjects

Files

Also Published In

Title
LCTES 2006: proceedings of the 2006 ACM SIGPLAN/SIGBED Conference for Languages, Compilers, and Tools for Embedded Systems: June 14-16, 2006, Ottawa, Ontario, Canada
Publisher
ACM Press
DOI
https://doi.org/10.1145/1134650.1134669

More About This Work

Academic Units
Computer Science
Published Here
September 22, 2011