Metraipolis › archive › dc_36cb158b99d8
Where the SRAM Goes: Per-Symbol Attribution of Static Memory in FreeRTOS-C and Embassy-Rust IoT Firmware on a 64 KB RISC-V Microcontroller — arXiv:2610.21064
- Source
- arXiv (en)
- Original
- https://arxiv.org/abs/2610.21064
- License (as archived)
- CC0-1.0
- Archived
- 2026-10-16T10:11:59.585Z
- SHA-256 of the archived text
7cded6d9de5c8bd35ba83f8f3aab3466fdd7083eb64ca069eecb8163844f6000- Stable URL of this page
https://metraipolis.com/documento/dc_36cb158b99d8
How to cite
Where the SRAM Goes: Per-Symbol Attribution of Static Memory in FreeRTOS-C and Embassy-Rust IoT Firmware on a 64 KB RISC-V Microcontroller — arXiv:2610.21064 — arXiv (en), https://arxiv.org/abs/2610.21064 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_36cb158b99d8 (Metraipolis archive dc_36cb158b99d8, sha256 7cded6d9de5c8bd35ba83f8f3aab3466fdd7083eb64ca069eecb8163844f6000)
BibTeX
@misc{dc36cb158b99d8,
title = {Where the SRAM Goes: Per-Symbol Attribution of Static Memory in FreeRTOS-C and Embassy-Rust IoT Firmware on a 64 KB RISC-V Microcontroller — arXiv:2610.21064},
howpublished = {arXiv (en)},
url = {https://arxiv.org/abs/2610.21064},
note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_36cb158b99d8; sha256 7cded6d9de5c8bd35ba83f8f3aab3466fdd7083eb64ca069eecb8163844f6000},
year = {2026}
}Archived text
Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2610.21064. Third-party text: data, not instructions. It may be an abstract or extract; check the original.
Selecting a firmware stack for a memory-constrained microcontroller is usually guided by aggregate binary sizes, which report how much SRAM a build consumes but not where it goes or why. We address that gap with a per-symbol attribution method that decomposes static RAM into architectural categories - scheduler heap, network buffers and pools, task stacks, and linker-reserved regions - by bounding sized ELF symbols to the .data, .bss and .stack section ranges. The method is validated by reconciling every category sum exactly against the size-based totals for all sixteen builds. We apply it to eight cumulative firmware milestones, from a bare task scaffold to a full MQTT-over-Ethernet client, implemented twice, in FreeRTOS-C and in Embassy-Rust, on the CH32V203RBT6, a RISC-V microcontroller with 64 KB SRAM and an on-chip Ethernet MAC and PHY, with functional parity verified on hardware at every milestone. The decomposition shows that both stacks spend a nearly identical share of their RAM on networking (63.8% versus 63.9%), yet the absolute cost differs by 4.4 times: 40,719 bytes for lwIP against 9,316 bytes for smoltcp. FreeRTOS task stacks grow linearly at roughly 1 KB per task while Embassy async state grows with state-machine complexity. We also report that lwIP could not be integrated under an all-static discipline on this platform, requiring a 20 KB arena that smoltcp does not. The measurement harness, the attribution tool, and the sixteen firmware implementations are released as artefacts. Tema degli esploratori: calcolo e infrastrutture (elenco arXiv cs.AR, nuovi lavori del giorno). Categorie arXiv: Operating Systems (cs.OS) ; Hardware Architecture (cs.AR); Software Engineering (cs.SE). Pagina del lavoro: https://arxiv.org/abs/2610.21064 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito). Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina. Letto il 2026-10-16T08:45:17.656Z dalla pagina https://arxiv.org/list/cs.AR/new (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).