4 ms·
BTW, if you're going to read a C standard library, skip glibc and go for musl: https://git.musl-libc.org/cgit/musl/tree/src https://git.musl-libc.org/cgit/musl/
by panic 9y ago
BTW, if you're going to read a C standard library, skip glibc and go for musl: https://git.musl-libc.org/cgit/musl/tree/src https://git.musl-libc.org/cgit/musl/tree/src
- woodrowbarlow 9y agowhy do you say that?
- sigjuice 9y agoBecause libcs other than glibc are less bloated and probably easier to read. ~ $ cat empty.c int main(void) {return 42;} ~ $ gcc -static empty.c -O3 ~ $ strip a.out ~ $ size text data bss dec hex filename 677598 5792 10464 693854 a965e a.out ~ $ diet gcc -static empty.c -O3 ~ $ strip a.out ~ $ size text data bss dec hex filename 901 32 76 1009 3f1 a.out
- posterboy 9y agoIt's just not very readable.
- _asummers 9y agoThere was an article last week-ish about reading OpenBSD source daily. https://news.ycombinator.com/item?id=14521386 https://news.ycombinator.com/item?id=14521386