raup-tier
Joined: 12 Jul 2008 Posts: 15 Location: Germany
|
Posted: Sun Jun 13, 2010 11:20 am Post subject: 2mb hello world |
|
|
Hi,
i don't know if this is the right section to post this, but i really want to know why the executables in D get so...BIG.
this code:
Code: |
module main;
import tango.io.Stdout;
int main( char[][] args ) {
Stdout( "hiho" );
return 0;
}
|
produces a 2 mega byte executable, after using strip -s, it is still 1 mega byte.
why is a simple hello world prog so big?
is this an issue of LDC, Tango or both?
has anyone experienced the same or am i simply not able to use
the ldc compiler in the right way?
system:
arch linux x86-64
ldc - tango
command used:
ldc main.d |
|