Post #162475
2026-01-28 09:14 UTC
You know how I always say picolibc isn't a Linux C library because it doesn't do all of the fancy Linux stuff? Well, it turns out you don't need much to get a semi-functioning system.
$ size test-hello-picolibc test-hello-glibc
text data bss dec hex filename
3632 144 4656 8432 20f0 test-hello-picolibc
645697 23704 22576 691977 a8f09 test-hello-glibc
I blame Kees Cook for nerd-sniping me on this one.
https://github.com/picolibc/picolibc/tree/native-linux
Replies (3)
-
@dalias@hachyderm.io 2026-01-28 14:56
@keithp@fosstodon.org With musl, gcc -Os -static hello.c, on stock Alpine x86_64: text data bss dec hex filename 3893 344 1744 5981 175d a.out
-
@paulmckrcu@social.kernel.org 2026-01-28 17:44
@keithp@fosstodon.org Then Linux-kernel tools/include/nolibc will provide you with even more irritation!!! ;-)
-
@jmorris@social.kernel.org 2026-01-28 18:24
@keithp@fosstodon.org Impressive. Reminds me about those Rust binaries...