www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Re: Executable size

reply Frank Benoit <keinfarbton googlemail.com> writes:
terranium Wrote:

 Frank Benoit Wrote:
 
 A compiled DWT app as .exe is about 7 MB and using JFace 14 MB.
 

Whoa. Poseidon uses DWT and it's a *little* bit smaller.

Yes, indeed. I wonder if UPX was used. What is the difference? Is it just that the old DWT uses less modules?
May 08 2008
next sibling parent reply terranium <spam here.lot> writes:
Frank Benoit Wrote:

 Whoa. Poseidon uses DWT and it's a *little* bit smaller.

Yes, indeed. I wonder if UPX was used. What is the difference? Is it just that the old DWT uses less modules?

Does it use old DWT? And what are you writing I wonder? A photoshop?
May 09 2008
parent Frank Benoit <keinfarbton googlemail.com> writes:
terranium schrieb:
 Frank Benoit Wrote:
 
 Whoa. Poseidon uses DWT and it's a *little* bit smaller.

What is the difference? Is it just that the old DWT uses less modules?

Does it use old DWT? And what are you writing I wonder? A photoshop?

Poseidon uses the SWT port from Shawn. I am talking about a simple test apps. The structure of SWT make every app to pull in a big part of the SWT lib.
May 09 2008
prev sibling next sibling parent reply yidabu <yidabu.spam gmail.com> writes:
On Thu, 08 May 2008 14:47:21 -0400
Frank Benoit <keinfarbton googlemail.com> wrote:

 terranium Wrote:
 
 Frank Benoit Wrote:
 
 A compiled DWT app as .exe is about 7 MB and using JFace 14 MB.
 

Whoa. Poseidon uses DWT and it's a *little* bit smaller.

Yes, indeed. I wonder if UPX was used. What is the difference? Is it just that the old DWT uses less modules?

I use dsss to build a simple jface program (just one module), it takes more than 800 obj files (modules), the executable size is 15 MB. ( dwt-win svn, dwt-addons svn). Does all 800 modules must compile in the simple jface program ? btw, seems impossible to build a jface program by dmd directly. -- yidabu <yidabu.spam gmail.com> http://www.dsource.org/projects/dwin D -(D Chinese): http://www.d-programming-language-china.org/ http://bbs.d-programming-language-china.org/ http://dwin.d-programming-language-china.org/ http://scite4d.d-programming-language-china.org/
May 12 2008
parent reply Frank Benoit <keinfarbton googlemail.com> writes:
yidabu schrieb:
 I use dsss to build a simple jface program (just one module), it takes more
than 800 obj files (modules), the executable size is 15 MB. ( dwt-win svn,
dwt-addons svn). 
 
 Does all 800 modules must compile in the simple jface program ? 
 
 btw, seems impossible to build a jface program by dmd directly.
 

You will need a response file to pass the arguements to DMD. The windows comand line is restricted to 8192 characters. The build tools like DSSS/bud should do this by default.
May 12 2008
parent Pragma <eric.t.anderton gmail.com> writes:
Frank Benoit Wrote:

 yidabu schrieb:
 I use dsss to build a simple jface program (just one module), it takes more
than 800 obj files (modules), the executable size is 15 MB. ( dwt-win svn,
dwt-addons svn). 
 
 Does all 800 modules must compile in the simple jface program ? 
 
 btw, seems impossible to build a jface program by dmd directly.
 

You will need a response file to pass the arguements to DMD. The windows comand line is restricted to 8192 characters. The build tools like DSSS/bud should do this by default.

Also, if you opt to not to link in the DWT library, and use the DWT sources directly, rebuild/bud should mange the .obj dependencies for you. That should result in a smaller executable size, at the cost of a longer compile. - Pragma
May 12 2008
prev sibling parent yidabu <yidabu.spam gmail.com> writes:
On Mon, 12 May 2008 10:59:21 -0400
Pragma <eric.t.anderton gmail.com> wrote:

 Frank Benoit Wrote:
 
 yidabu schrieb:
 I use dsss to build a simple jface program (just one module), it takes more
than 800 obj files (modules), the executable size is 15 MB. ( dwt-win svn,
dwt-addons svn). 
 
 Does all 800 modules must compile in the simple jface program ? 
 
 btw, seems impossible to build a jface program by dmd directly.
 

You will need a response file to pass the arguements to DMD. The windows comand line is restricted to 8192 characters. The build tools like DSSS/bud should do this by default.

Also, if you opt to not to link in the DWT library, and use the DWT sources directly, rebuild/bud should mange the .obj dependencies for you. That should result in a smaller executable size, at the cost of a longer compile. - Pragma

I link in the dwt.lib and dwtx.lib (added to sc.ini), to build ApplicationWindow based jface program by dmd directly: dmd test.d -L/SUBSYSTEM:windows:5 test.exe cause unhandled runtime exception: tango.core.Exception.IllegalElementException: Attempt to include invalid key _in Collection -- yidabu <yidabu.spam gmail.com> http://www.dsource.org/projects/dwin D -(D Chinese): http://www.d-programming-language-china.org/ http://bbs.d-programming-language-china.org/ http://dwin.d-programming-language-china.org/ http://scite4d.d-programming-language-china.org/
May 12 2008