K
K
Kostya Bakay2015-02-24 00:09:02
Android
Kostya Bakay, 2015-02-24 00:09:02

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

3 answer(s)
S
Saboteur, 2015-02-24
@kostyabakay

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.

M
MiiNiPaa, 2015-02-24
@MiiNiPaa

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.

N
Nikolay Kosyanchuk, 2015-03-02
@Dev_Nikolya

remove unnecessary libs

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question