It's just a piece of "hello world" C++ code.
#include <stdio.h>
int main(int argc, char* argv[])
{
printf("hello");
return 0;
}
I compiled the code with clang 3.9. The command is: clang -m32 hello.cpp -o hello.exe, and the target executable size is about 44kb. It didn't make any difference with "O3" option added to the command.
While I compiled it with visual studio 2010, the size of the target executable file is only 6kb for release version and 28kb for debug version.
Could anyone help to explain the difference between the two versions' binary. Any help would be appreciated.