"-defaultlib=libphobos2"

Joakim via Digitalmars-d digitalmars-d at puremagic.com
Mon Sep 1 00:46:51 PDT 2014


On Monday, 1 September 2014 at 07:36:44 UTC, Joakim wrote:
> On Monday, 1 September 2014 at 06:07:39 UTC, Joakim wrote:
>> The Windows version of dmd 2.067 seems to do a better job, 
>> with the executable coming in at 144 KB for the 32-bit version 
>> linked with optlink and 270 KB for the 64-bit version linked 
>> with the MS linker.
>
> Sorry, I measured with the official release of dmd 2.066.0 on 
> Windows 7 x64 and miswrote the version as 2.067.

Oh, I also wanted to say that in this day and age of fast 
internet connections and large disk drives, a basic runtime size 
cost of less than half a MB is nothing and not worth worrying 
about.  My smartphone model that came out two years ago has 64 GB 
of space, I have trouble finding HD videos to fill it up with. :)

We should try to minimize binary size, simply because all 
optimizations are helpful, but it's not a high priority.  If 
you're trying to use D in the embedded space, as Adam and others 
have, presumably you know what you're doing and can hack it down 
yourself.


More information about the Digitalmars-d mailing list