"The std.stdio package imports most the standard library" etc.

Abe via Digitalmars-d digitalmars-d at puremagic.com
Sun Aug 31 17:10:24 PDT 2014


Thanks, Adam.

Is this roughly the same on all relevant platforms for DMD?

I was thinking [hoping?] that maybe this was a problem vis-a-vis 
the Mac OS X linker, i.e. a situation such that the linker isn`t 
dropping anything from the referenced libraries, even when the 
majority of the stuff in those library files is not being used in 
the currently-being-linked object file.

BTW: using "strip" [no special options] on the executable 
produces a steep drop in the length of the "nm" output, but only 
a small change in actual size:

   > ls -l foo
   -rwxr-xr-x  1 Abe  wheel  469112 Aug 31 19:08 foo

   > nm foo | wc -l
     1263


— Abe


More information about the Digitalmars-d mailing list