I've noticed that the size of a simple C program that prints "hello world":
#include <stdio.h>
int main()
{
printf("hello world");
}
is approximately 8kB. I thought that it might be because of the include, then I've generated a simpler program:
int main()
{
int x=1+13;
return x;
}
But again the size of the compiled program was ~8kB.
Why is that so large? If a machine instruction is 8B then there are about 1k instructions, but I don't see any reason why such simple code will result in such many instructions.