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/