Slacker News Slacker News logo featuring a lazy sloth with a folded newspaper hat
  • top
  • new
  • show
  • ask
  • jobs
Library
← Back to context

Comment by yesenadam

4 years ago

> Hello world in C will cost you a binary size of mind numbing 2000KB

2MB? I'm not sure where that number comes from. Maybe I misunderstand what you mean. I just tried compiling

    #include <stdio.h>
    main(){
      printf("Hello, world\n");
    }

with gcc on a Mac. The binary is 13340 bytes. Surprisingly big, but not 2000000 bytes! 1/150 that size.

0 comments

yesenadam

Reply

No comments yet

Contribute on Hacker News ↗

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities