Post #2569260
2026-01-28 14:56 UTC
@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
Replies (1)
-
@etchedpixels@mastodon.social 2026-01-28 17:12
@dalias@hachyderm.io @keithp@fosstodon.org Fuzix (standard C library, 8085 CPU, not even a fancy optimizing compiler) base text data bss size hex filename 100 10c5 5c 318 5177 1439 a.out gcc on 6809 or HC11 is way way smaller but it turns out gcc seems to know to swap the printf call magically for something else in this case.