Fast Clean-room Multiplatform C Run-Time for RTOS

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
5HT
Posts: 1
Joined: Sun Nov 15, 2026 3:18 am

Fast Clean-room Multiplatform C Run-Time for RTOS

Post by 5HT »

I wrote a small clean-room C99 runtime under fairly strict real-time constraints:

• Zero heap after boot
• No large static tables (Unicode / case / collation moved out of the core)
• O(1) bounded stack sort
• Written with MISRA C:2023 / CERT C / NASA Power of Ten style rules in mind
• Current size is roughly 1.2–10.5 kB .text depending on configuration
• Side-by-side size comparisons with dietlibc, picolibc, NuttX libc, etc.
• SIMD Assembly Kernels

It was built as the runtime layer for a BTRON-derived system, but the runtime itself is intentionally minimal and separable.

I’m mainly looking for feedback from people who ship actual constrained or safety-oriented code. What would you change or drop?

https://github.com/msx-btron/rt/
Post Reply