0

I have made a simple Hello World program in C++.

But, for some reasons it is taking up almost 900kb.

I have no idea why it is so big. I am using -s, -Os and -Bdynamic I am using Code blocks.

I tried this: GCC C++ "Hello World" program -> .exe is 500kb big when compiled on Windows. How can I reduce its size?

My program:

#include <iostream>

int main()
{
    std::cout << "Hello world" << std::endl;
    return 0;
}

Yesterday i made a bigger program and it was only 21Kb. Now every single of the executables are about 900Kb.

Info: I tried to compile it myself using g++ Hello.cpp -Bdynamic -s -Os - Still the same size.

But when i compiled it using printf from <stdio.h> i got it to 21Kb.

I want to use <iostream>

Sizes

(It is an updated version of my post)

0 Answers0