Embedded Rust or C Firmware? Lessons from an Industrial Microcontroller Use Case with Ariel OS

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Thapa, Bipin, Alfonso, Daniele, Bini, Lorenzo, Mapelli, Licio, Schleiser, Kaspar, Fouquet, Romain, Baccelli, Emmanuel
Format: Preprint
Veröffentlicht: 2026
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866909054798921728
author Thapa, Bipin
Alfonso, Daniele
Bini, Lorenzo
Mapelli, Licio
Schleiser, Kaspar
Fouquet, Romain
Baccelli, Emmanuel
author_facet Thapa, Bipin
Alfonso, Daniele
Bini, Lorenzo
Mapelli, Licio
Schleiser, Kaspar
Fouquet, Romain
Baccelli, Emmanuel
contents As Rust gains traction for developing safer systems software, a reality check for the microcontroller hardware segment becomes necessary. How ready is the Rust ecosystem for this segment? Can Rust compete with C in practice? This paper reports on an IoT industrial case study that contributes to answering these questions. Two teams concurrently developing the same functionality (one in C, one in Rust) are analyzed over a period of several months. A comparative analysis of their approaches, results, and iterative efforts is provided. The analysis and measurements on hardware indicate no strong reason to prefer C over Rust for microcontroller firmware on the basis of memory footprint or execution speed. Furthermore, Ariel OS is shown to provide an efficient and portable system runtime in Rust whose footprint is smaller than that of the state-of-the-art bare-metal C stack traditionally used in this context. It is concluded that Rust is a sound choice today for firmware development in this domain.
format Preprint
id arxiv_https___arxiv_org_abs_2604_25679
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle Embedded Rust or C Firmware? Lessons from an Industrial Microcontroller Use Case with Ariel OS
Thapa, Bipin
Alfonso, Daniele
Bini, Lorenzo
Mapelli, Licio
Schleiser, Kaspar
Fouquet, Romain
Baccelli, Emmanuel
Operating Systems
As Rust gains traction for developing safer systems software, a reality check for the microcontroller hardware segment becomes necessary. How ready is the Rust ecosystem for this segment? Can Rust compete with C in practice? This paper reports on an IoT industrial case study that contributes to answering these questions. Two teams concurrently developing the same functionality (one in C, one in Rust) are analyzed over a period of several months. A comparative analysis of their approaches, results, and iterative efforts is provided. The analysis and measurements on hardware indicate no strong reason to prefer C over Rust for microcontroller firmware on the basis of memory footprint or execution speed. Furthermore, Ariel OS is shown to provide an efficient and portable system runtime in Rust whose footprint is smaller than that of the state-of-the-art bare-metal C stack traditionally used in this context. It is concluded that Rust is a sound choice today for firmware development in this domain.
title Embedded Rust or C Firmware? Lessons from an Industrial Microcontroller Use Case with Ariel OS
topic Operating Systems
url https://arxiv.org/abs/2604.25679