Hacker News new | ask | show | jobs
by trileansoftware 2439 days ago
Interesting project.

What is the footprint of this compiled for a MCU, something like a STM32?

1 comments

This libc is for Linux, so I guess you can't compile it for a bare-metal system like STM32.
For microcontrollers the most popular open source option is newlib[1].

[1] http://sourceware.org/newlib/

Keith Packard maintains an excellent "picolibc" that I have used recently (and contributed to, a little). It was formerly called newlib-nano, and consists of newlib with the string functions replaced with cheaper (slower) versions from avrlibc and various other slimming changes (e.g. reduction of struct reent stuff, and some locale stuff, by default).

https://github.com/keith-packard/picolibc