www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - File size problem

reply Long Chang <changedalone gmail.com> writes:
I build dwt-win & dwtx with dmd 1.053 & tango trunk on win32 .
 the execute file size is huge.

I build  dwt-samples\jface.text\Simple.d, the execute file size is
24051kb, the file has 21733kb binary value is 0xff & 0x00,  after upx
compress the file size is 1034kb.

 I want to know is the optlink bring this issue ?
 The new version of optlink will fix it?
 About how long the new optlink be useful?
Dec 11 2009
parent reply torhu <no spam.invalid> writes:
On 12.12.2009 1:11, Long Chang wrote:
 I build dwt-win&  dwtx with dmd 1.053&  tango trunk on win32 . the
 execute file size is huge.

 I build  dwt-samples\jface.text\Simple.d, the execute file size is
 24051kb, the file has 21733kb binary value is 0xff&  0x00,  after
 upx compress the file size is 1034kb.
Please try the advice posted here, and see if it helps: http://d.puremagic.com/issues/show_bug.cgi?id=2254#c10
Dec 12 2009
next sibling parent Long Chang <changedalone gmail.com> writes:
2009/12/13 torhu <no spam.invalid>:
 On 12.12.2009 1:11, Long Chang wrote:
 I build dwt-win& =C2=A0dwtx with dmd 1.053& =C2=A0tango trunk on win32 .=
the
 execute file size is huge.

 I build =C2=A0dwt-samples\jface.text\Simple.d, the execute file size is
 24051kb, the file has 21733kb binary value is 0xff& =C2=A00x00, =C2=A0af=
ter
 upx compress the file size is 1034kb.
Please try the advice posted here, and see if it helps: http://d.puremagic.com/issues/show_bug.cgi?id=3D2254#c10
thank you for he tip. the file size is still big with xfbuild or bud, build dwtx.jface.text will gen a float exe file. the exe file can be compress to 5% size. when it run cost 29M memroy even i already use upx compress it . I think there is some issue inside dmd or optlink. the dwt is great lib, but had not get enough attention from Walter. if we make a Product Level DWT lib, Will attract a lot of programmers even without a IDE.
Dec 12 2009
prev sibling parent Long Chang <changedalone gmail.com> writes:
xfbuild reduce the file size to 14M, cost memory to 20M.
compressed  size is 1M.
Dec 12 2009