MPLR2024 Talk

Posted on September 19, 2024

mruby on Resource-Constrained Low-Power Coprocessors of Embedded Devices

Go Suzuki, Takuo Watanabe, Sosuke Moriguchi
21st ACM SIGPLAN International Conference on Managed Programming Languages and Runtimes (MPLR 2024), Vienna, Sep., 19, 2024.

Abstract

As IoT devices advance, their microcontroller systems-on-a-chip (SoCs) demand higher speeds, more memory, and advanced peripherals, leading to increased power consumption. Integrating low-power (LP) coprocessors in SoCs can reduce power usage while maintaining responsiveness. However, switching application execution to and from the coprocessors generally involves complex and platform-specific procedures. We propose a JIT compilation method for managed programming languages to streamline LP coprocessor use. Our prototype for the programming language mruby includes a JIT compiler and a seamless processor-switching mechanism, enabling rapid development of IoT applications leveraging LP coprocessors. This work-in-progress paper describes the design and implementation of the extended mruby interpreter and presents preliminary evaluations of its power consumption and latency on ESP32-S3 and ESP32-C6.

Publication

Go Suzuki, Takuo Watanabe, and Sosuke Moriguchi, mruby on Resource-Constrained Low-Power Coprocessors of Embedded Devices, Proceedings of the 21st ACM SIGPLAN International Conference on Managed Programming Languages and Runtimes (MPLR ’24), pp. 41–47, ACM, Sep., 2024. DOI:10.1145/3679007.3685064

Demo Video