Oleksii Shmalko, Pavlo Rehida, Artem Volokyta, Heorhii Loutskii, Vu Duc Thinh


Background. C or C ++ languages are most commonly used for programming of embedded systems. The main drawbacks are: lack of updates, difficulty in use, limited backward compatibility and potentially a large number of possible programmer errors. Therefore, it is important to provide developers of low-level software of embedded systems, operating systems and system
utilities with fast, productive, reliable and stable language on the basis of modern programming theory.
Objective. The aim of the paper is to create a new productive and reliable programming language for embedded systems using the principles and approaches of modern programming theory.
Methods. Analyzing well-known publications devoted to programming languages used for embedded systems allowed identifying their main advantages and disadvantages. Comparing of modern approaches to the implementation of programming languages allowed determining the requirements for the developed language.
Results. A new programming language for embedded devices has been developed. The following compiler modules are described: lexer, parser, semantic analyzer, intermediate code generator. A detailed description of the developed programming language is presented.
Conclusions. In this paper, we propose to use a new programming language for embedded devices. An analysis of existing programming languages and typical developer errors was performed to ensure the reliability of the proposed language.


programming languages; embedded systems; real-time systems.

Full Text:



D.M. Ritchie, ‘C Programming Language History’, [Online]. Available: [Accessed: 27- April-

., ‘Idris. A Language with Dependent Types’, [Online].

Available: [Accessed: 27- April- 2018]., ‘idris: Dependently Typed Functional

Programming Language’, [Online]. Available: [Accessed: 27- April-

., ‘atom: An EDSL for embedded hard realtime

applications.’, [Online]. Available: [Accessed: 27- April- 2018]., ‘Ivory Language’, [Online]. Available: [Accessed: 27- April- 2018]., ‘Haskel An advanced, purely functional programming

language’, [Online]. Available: [Accessed:

- April- 2018]., ‘nim Efficient and expressive programming.’, [Online].

Available: [Accessed: 27- April- 2018]., ‘Nim Manual Pragmas’, [Online]. Available: http://nimlang.

org/docs/manual.html#pragmas. [Accessed: 27- April- 2018]., ‘Nim Issues’, [Online]. Available: [Accessed: 27- April- 2018]., ‘The Rust Programming Language’, [Online]. Available: [Accessed: 27- April- 2018]., ‘Lambda the Ultimate’, [Online]. Available: [Accessed: 27- April- 2018]., ‘The LLVM Compiler Infrastructure’, [Online]. Available: [Accessed: 27- April- 2018].

H. Massalin, ‘Synthesis: An Ecient Implementation of Fundamental

Operating System Services’, Columbia University, 1992, 158 pages., ‘Cortex-M Series’, [Online]. Available: [Accessed: 27-

April- 2018]., ‘STM32 32-bit ARM Cortex MCUs’. [Online]. Available:

html. [Accessed: 27- April- 2018].

Rasmus Christian Larsen, ‘Advanced Sleep-Mode Techniques for

Enhanced Battery Life in Real-Time Environments’, 2011. [Online].

Available: environments. [Accessed: 27- April- 2018].

J. Atwood, ‘Hardware is Cheap, Programmers are Expensive’, 2008.

[Online]. Available: [Accessed: 27- April- 2018]., ‘Motor Industry Software Reliability Association’,

[Online]. Available: [Accessed: 27- April-


G. Gonzalez, ‘Worst practices should be hard’, [Online]. Available:

html. [Accessed: 27- April- 2018].

A. Chou, J. Yang, B. Chelf, S. Hallem, and D. Engler, “An Empirical

Study of Operating Systems Errors”, ACM SIGOPS Operating Systems

Review, vol. 35, pp. 73-88, 2001.

P. J. Guo and D. Engler, “Linux Kernel Developer Responses to Static

Analysis Bug Reports”, Proceeding USENIX'09 Proceedings of the

conference on USENIX Annual technical conference, pp. 22-22,

June 14-19, 2009.

I. Abal, C. Brabrand and A. Wąsowski, ‘40 Variability Bugs in the

Linux Kernel’, IT University of Copenhagen, Copenhagen, 2014.

L. Krubner, ‘Object Oriented Programming is an expensive disaster

which must end’, [Online]. Available: [Accessed: 27-April- 2018]., ‘The Heartbleed Bug’, [Online]. Available: [Accessed: 27- April- 2018].

J. Hildenbrand, ‘Let's talk about Blueborne, the latest Bluetooth

vulnerability’, [Online]. Available:

about-blueborne-latest-bluetooth-vulnerability. [Accessed: 27-

April- 2018]., ‘Alex: A lexical analyser generator for Haskell’, [Online].

Available: [Accessed: 27- April- 2018]., ‘Happy. The Parser Generator for Haskell’, [Online].

Available: [Accessed: 27- April- 2018].