Hacker News new | ask | show | jobs
by kbumsik 2439 days ago
This libc is for Linux, so I guess you can't compile it for a bare-metal system like STM32.
1 comments

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