What can be done to reduce executable size?

Mehrdad wfunction at hotmail.com
Sat Dec 10 11:04:39 PST 2011


On 12/10/2011 7:39 AM, Bane wrote:
> Short term and long term suggestions ? Anything we can do ? I heard it 
> is some problem with linking dead code?
>
>
>
> import std.stdio;
> int main(){
>   writefln("Hello Bloat!");
>   return 0;
> }
>
> dmd -release -O hello.d
>
> On Windows:
> v1.071 = 339 Kb
> v2.056 = 1017 Kb
>
> It looks very ugly and might distract some people.

If Walter simply releases a few small parts of SNN.lib, it's quite 
possible to use your own C runtime instead. And that will lower the 
executable size down to ~10 KB.


More information about the Digitalmars-d mailing list