Compiler: Size of generated executable file
Nick Sabalausky
a at a.a
Sat Jan 9 10:29:09 PST 2010
"Ph" <romanua at gmail.com> wrote in message
news:hia7qc$b5k$1 at digitalmars.com...
> Why a generated file is so huge?
> "Empty" program such as:
>
> int main(char[][] args)
> {
>
> return 0;
> }
>
> compiled with dmd2 into file with size of 266268 bytes.
> Even after UPX, it's size is 87552 bytes.
> Size of this code,compiled with VS(yes,yes, C++), is 6 656 bytes.
> Compiler add's standard library to file, am i right?
> Is there some optimization which delete unused code from file?
>
That's not even a third of a megabyte, why does this keep getting brought up
as an issue by so many people?
More information about the Digitalmars-d
mailing list