MakeCode and CODAL: intuitive and efficient embedded systems programming for education

Published in Journal of System Architecture, 2019

Recommended citation: Devine, J., Finney, J., de Halleux, P., Moskal, M., Ball, T. and Hodges, S., 2019. MakeCode and CODAL: intuitive and efficient embedded systems programming for education. Journal of Systems Architecture. https://doi.org/10.1016/j.sysarc.2019.05.005

Historically, embedded systems development has been a specialist skill, requiring knowledge of low-level programming languages, complex compilation toolchains, and specialist hardware, firmware, device drivers and applications. However, it has now become commonplace for a broader range of non-specialists to engage in the making (design and development) of embedded systems - including educators to motivate and excite their students in the classroom. This diversity brings its own set of unique requirements, and the complexities of existing embedded systems development platforms introduce insurmountable barriers to entry.

In this paper we present the motivation, requirements, implementation, and evaluation of a new programming platform that enables novice users to create effective and efficient software for embedded systems. The platform has two major components: 1) Microsoft MakeCode (www.makecode.com), a web app that encapsulates an accessible IDE for microcontrollers; and 2) CODAL, an efficient component-oriented C++ runtime for microcontrollers. We show how MakeCode and CODAL combine to provide an accessible, cross-platform, installation-free, high level programming experience for embedded devices without sacrificing performance and efficiency.