View mode: basic / threaded / horizontal-split · Log in · Help
August 10, 2008
Re: dmd -lib and executable size (+10 MB)
well at least not fixed for dmd 2.018, the opposite is the case, it grew 
even more.


Moritz Warning wrote:
> On Wed, 06 Aug 2008 13:53:07 +0800, Lionello Lunesu wrote:
>
>   
>> I got curious and wrote a batch file to test the exe sizes for all
>> versions of dmd.exe in my local repository. The D file only has "void
>> main() {}".
>>
>> There's clearly a jump in filesize since v1.032, when the size went from
>> 79KB to 124KB.
>>
>> Here's the complete result:
>>     
> [..]
>   
>> Digital Mars D Compiler v1.033
>> 124.444  t.exe
>>     
>
> Can anyone confirm that this is resolved now with dmd v1.034?
> My test shows that the binary size is back to 81KB (stripped).
>
August 10, 2008
Re: dmd -lib and executable size (+10 MB)
Moritz Warning:
> Can anyone confirm that this is resolved now with dmd v1.034?
> My test shows that the binary size is back to 81KB (stripped).

Walter has signed the problem as solved, but with 1.034 I see no changes in size, so the program is inflated still. If this will be confirmed the bug may be reopened :-)

Bye,
bearophile
August 10, 2008
Re: dmd -lib and executable size (+10 MB)
Moritz Warning Wrote:

> On Wed, 06 Aug 2008 13:53:07 +0800, Lionello Lunesu wrote:
> 
> > I got curious and wrote a batch file to test the exe sizes for all
> > versions of dmd.exe in my local repository. The D file only has "void
> > main() {}".
> > 
> > There's clearly a jump in filesize since v1.032, when the size went from
> > 79KB to 124KB.
> > 
> > Here's the complete result:
> [..]
> > Digital Mars D Compiler v1.033
> > 124.444  t.exe
> 
> Can anyone confirm that this is resolved now with dmd v1.034?
> My test shows that the binary size is back to 81KB (stripped).

I didn't test compiling with just void main() { }, but when I re-compiled some of my work, the executable size went down from 1.033. So I would say it got resolved for the most part.
August 10, 2008
Re: dmd -lib and executable size (+10 MB)
On Sun, 10 Aug 2008 09:00:18 -0400, bearophile wrote:

> Moritz Warning:
>> Can anyone confirm that this is resolved now with dmd v1.034? My test
>> shows that the binary size is back to 81KB (stripped).
> 
> Walter has signed the problem as solved, but with 1.034 I see no changes
> in size, so the program is inflated still. If this will be confirmed the
> bug may be reopened :-)
> 
> Bye,
> bearophile

What compile options do you use?
I just used "dmd main.d" followed by "strip main".
August 10, 2008
Re: dmd -lib and executable size (+10 MB)
Michael P. Wrote:

> Moritz Warning Wrote:
> 
> > On Wed, 06 Aug 2008 13:53:07 +0800, Lionello Lunesu wrote:
> > 
> > > I got curious and wrote a batch file to test the exe sizes for all
> > > versions of dmd.exe in my local repository. The D file only has "void
> > > main() {}".
> > > 
> > > There's clearly a jump in filesize since v1.032, when the size went from
> > > 79KB to 124KB.
> > > 
> > > Here's the complete result:
> > [..]
> > > Digital Mars D Compiler v1.033
> > > 124.444  t.exe
> > 
> > Can anyone confirm that this is resolved now with dmd v1.034?
> > My test shows that the binary size is back to 81KB (stripped).
> 
> I didn't test compiling with just void main() { }, but when I re-compiled some of my work, the executable size went down from 1.033. So I would say it got resolved for the most part. 


Err, scratch that. When I compiled void main() { } with 'dmd main', the size was still 121kb, and my other executable sizes were the same too.
August 10, 2008
Re: dmd -lib and executable size (+10 MB)
yup, mine too.. still huge, on D2 even bigger

Michael P. wrote:
> Michael P. Wrote:
>
>   
>> Moritz Warning Wrote:
>>
>>     
>>> On Wed, 06 Aug 2008 13:53:07 +0800, Lionello Lunesu wrote:
>>>
>>>       
>>>> I got curious and wrote a batch file to test the exe sizes for all
>>>> versions of dmd.exe in my local repository. The D file only has "void
>>>> main() {}".
>>>>
>>>> There's clearly a jump in filesize since v1.032, when the size went from
>>>> 79KB to 124KB.
>>>>
>>>> Here's the complete result:
>>>>         
>>> [..]
>>>       
>>>> Digital Mars D Compiler v1.033
>>>> 124.444  t.exe
>>>>         
>>> Can anyone confirm that this is resolved now with dmd v1.034?
>>> My test shows that the binary size is back to 81KB (stripped).
>>>       
>> I didn't test compiling with just void main() { }, but when I re-compiled some of my work, the executable size went down from 1.033. So I would say it got resolved for the most part. 
>>     
>
>
> Err, scratch that. When I compiled void main() { } with 'dmd main', the size was still 121kb, and my other executable sizes were the same too.
>
>
August 10, 2008
Re: dmd -lib and executable size (+10 MB)
Moritz Warning:
> What compile options do you use?

For this benchmark the same I have used in the past, that means none at all:

dmd test.d


> I just used "dmd main.d" followed by "strip main".

On Windows I haven't found a working strip for DMD yet.

Bye,
bearophile
August 10, 2008
Re: dmd -lib and executable size (+10 MB)
"bearophile" wrote
> Moritz Warning:
>> What compile options do you use?
>
> For this benchmark the same I have used in the past, that means none at 
> all:
>
> dmd test.d
>
>
>> I just used "dmd main.d" followed by "strip main".
>
> On Windows I haven't found a working strip for DMD yet.

I believe Windows binary format is already stripped (usually debug symbols 
are put into a separate file).

-Steve
Next ›   Last »
1 2
Top | Discussion index | About this forum | D home