Synchronized Shared Memory and Black-box Procedural Abstraction: Towards a Formal Semantics of Blech
Open Access
- 14 August 2024
- journal article
- research article
- Published by Association for Computing Machinery (ACM) in ACM Transactions on Embedded Computing Systems
- Vol. 23 (5) , 1-45
Abstract
Traditional imperative synchronous programming languages heavily rely on a strict separation between data memory and communication signals. Signals can be shared between computational units but cannot be overwritten within a synchronous reaction cycle. Memory can be destructively updated but cannot be shared between concurrent threads. This incoherence makes traditional imperative synchronous languages cumbersome for the programmer. The recent definition of sequentially constructive synchronous languages offers an improvement. It removes the separation between data memory and communication signals and unifies both through the notion of clock synchronized shared memory . However, it still depends on global causality analyses, which precludes black-box procedural abstraction. This complicates reuse and composition of software components. This article shows how black-box procedural abstraction can be accommodated inside the sequentially constructive model of computation. We present the Sequentially Constructive Procedural Language ( SCoPL ) and its semantic theory of policy-constructive synchronous processes. SCoPL supports black-box procedural abstractions using policy interfaces to ensure that procedure calls are memory-safe and wait-free and their scheduling is determinate and causal. At the same time, a policy interface constrains the level of freedom for the implementation and subsequent refactoring of a procedure. As a result, policies enable separate compilation and composition of procedures. We present our extensions abstractly as a formal semantics for SCoPL and motivate it concretely in the context of the open-source, embedded, real-time language Blech .Keywords
This publication has 26 references indexed in Scilit:
- Timing Analysis of Synchronous Programs using WCRT AlgebraACM Transactions on Embedded Computing Systems, 2017
- The ForeC Synchronous Deterministic Parallel Programming Language for Multicores2016
- SCCharts: sequentially constructive statecharts for safety-critical applications2014
- Constructive Boolean circuits and the exactness of timed ternary simulationFormal Methods in System Design, 2012
- Predictable multithreading of embedded applications using PRET-C2010
- Modular static scheduling of synchronous data-flow networksDesign Automation for Embedded Systems, 2010
- Synchronous objects with scheduling policies2009
- Separate compilation and execution of imperative synchronous modules2009
- Clock-directed modular code generation for synchronous data-flow languages2008
- Separate Compilation for Synchronous ModulesLecture Notes in Computer Science, 2005