logoalt Hacker News

galangalalgolyesterday at 5:17 PM1 replyview on HN

The default hello world stripped with one codegen unit and panic=abort was 342kB both nightly and stable. Adding lto dropped it 42kB in stable and 40kB in nightly. Adding build-std and only building core did not reduce it any further in size.


Replies

metaltyphoonyesterday at 8:59 PM

I assume OP is taking about using -Zbuild-std on nightly. This will drop it much more.

show 1 reply