Timed C: An Extension to the C Programming Language for Real-Time Systems
Authors:
- Saranya NatarajanSNSaranya Natarajan
- David BromanDBDavid Broman
- 1 April 2018
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- p. 227-239
Abstract
The design and implementation of real-time systems require that both the logical and the temporal behavior are correct. There exist several specialized languages and tools that use the notion of logical time, as well as industrial strength languages such as Ada and RTJS that incorporate direct handling of real time. Although these languages and tools have shown to be good alternatives for safety-critical systems, most commodity real-time and embedded systems are today implemented in the standard C programming language. Such systems are typically targeting proprietary bare-metal platforms, standard POSIX compliant platforms, or open-source operating systems. It is, however, error prone to develop large, reliable, and portable systems based on these APIs. In this paper, we present an extension to the C programming language, called Timed C, with a minimal set of language primitives, and show how a retargetable source-to-source compiler can be used to compile and execute simple, expressive, and portable programs. To evaluate our approach, we conduct a case study of a CubeSat satellite. We implement the core timing aspects in Timed C, and show portability by compiling on-board software to both flight hardware, and to low-cost experimental platforms.Keywords
This publication has 27 references indexed in Scilit:
- The worst-case execution-time problem—overview of methods and survey of toolsACM Transactions on Embedded Computing Systems, 2008
- Achieving Scalability in Real-Time SystemsComputer, 2006
- The real-time specification for JavaComputer, 2000
- Optimal composition of real-time systemsArtificial Intelligence, 1996
- RTC: Language support for real-time concurrencyReal-Time Systems, 1993
- The Esterel synchronous programming language: design, semantics, implementationScience of Computer Programming, 1992
- Real-time Concurrent C: A language for programming dynamic real-time systemsReal-Time Systems, 1991
- The synchronous data flow programming language LUSTREProceedings of the IEEE, 1991
- Four-slot fully asynchronous communication mechanismIEE Proceedings E Computers and Digital Techniques, 1990
- Aperiodic task scheduling for Hard-Real-Time systemsReal-Time Systems, 1989