Home
Blogs
Questions

Home

About Us

Blogs

Questions

Monetize

Post Job

banner

Questions about size-reduction

Read more about size-reduction

python (65.2k questions)

javascript (44.3k questions)

reactjs (22.7k questions)

java (20.8k questions)

c# (17.4k questions)

html (16.3k questions)

r (13.7k questions)

android (13k questions)

Questions - size-reduction

Why is a statically-linked "hello world" program so big (over 650 KB)?

Consider the following program: #include <stdio.h> int main(void) { printf("hello world\n"); return 0; } If I build it with GCC, optimizing for size, and with static linking, and ...
test-img

ein supports Moderator Strike

c

static-linking

size-reduction

binary-size

Votes: 0

Answers: 3

Latest Answer

A partial answer: The executable's inflated size... does not have anything to do with your use of printf. does not have anything to do with the compiler's ability to optimize your code. does not have...
test-img

ein supports Moderator Strike

Posts

Questions

Blogs

Where knowledge meets opportunity!

About

  • Company
  • Monetize your knowledge
  • Support

  • Platform

  • Terms & Conditions
  • Privacy statement
  • Cookie policy
  • Cookie option
  • OnlyCoders © 2025  |  All rights reserved