Answer the question
In order to leave comments, you need to log in
Why hello world is 2.16MB?
Each of us does hello world in his first application, I also did everything following the instructions, but one thing confused me - why does an application that simply displays this line take as much as 2.16 MB? I've seen a lot of good apps that take up less than 2 MB, so I'm interested in this question.
Answer the question
In order to leave comments, you need to log in
Because in ancient computers you simply output Hello World to the current black and white, character terminal, and now you allocate memory, create an object, start a process, create a dialog box, display text in it in a certain font, and then clean it all up after yourself , and close the window.
All this is done by the libraries that you have connected to your program.
Most likely, standard libraries are stuffed there in their entirety + information for debugging (it can inflate the size of simple programs ten times). Check your compiler settings, Debug or Release build you are doing.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question