View previous topic :: View next topic |
Author |
Message |
flyingxu
Joined: 22 Nov 2008 Posts: 4
|
Posted: Sun Nov 23, 2008 2:43 am Post subject: exe file size |
|
|
Hi All,
I'm a new learner of DFL, and also new to D.
I just managed to set all the dev tools and compiled my first DFL project, the helloworld.d example in DFL.
The size of the exe is about 300k, while the debug version is 1500k.
I'm a desktop application developer, who cares the size of the distrubuted package very much.
The simple helloworld window exe is about 300k, will the size incsrease much when I add more windows/controls?
I noticed that the size of Entice is less than 1M, which is acceptable. |
|
Back to top |
|
|
Chris Miller
Joined: 27 Mar 2004 Posts: 514 Location: The Internet
|
|
Back to top |
|
|
netrino
Joined: 03 Jan 2010 Posts: 1
|
Posted: Sun Jan 03, 2010 9:26 am Post subject: Re: exe file size |
|
|
Hi, Chris! First of all I want to thank you for great job! I have checked out table of sizes and it seems that DFL provides pretty small executables
But when I've download and compile simple Hello, World program with DFL and dmd 2.038(1.053) I've got 1MB for release version Am I doing something wrong? Or DFL has just grown up? Can I somehow reduce size of executable without upx or other packers?
p.s. sorry for my english, I hope you understand me
+added:
sorry for confusing, it's not DFL's fault, but newer version of dmd compiler _________________ Respect. |
|
Back to top |
|
|
kanryu
Joined: 02 May 2010 Posts: 9
|
Posted: Fri May 14, 2010 10:58 am Post subject: Re: exe file size |
|
|
netrino wrote: | But when I've download and compile simple Hello, World program with DFL and dmd 2.038(1.053) I've got 1MB for release version |
DFL is needed to support many kind of controls used in windows, like System.Windows.Forms
So it will larger in rest of its life.
For this problem, we can suggest to link only some partical function of dfl witch an application need to run with.
Usually, we don't have to warry about a few mega-bytes of size for GUI application |
|
Back to top |
|
|
Chris Miller
Joined: 27 Mar 2004 Posts: 514 Location: The Internet
|
Posted: Thu Jun 03, 2010 1:05 pm Post subject: Re: exe file size |
|
|
It seems like phobos (std) has been growing quite a lot, especially in D2. Tango seems to be winning in this department now. |
|
Back to top |
|
|
Trass3r
Joined: 29 Feb 2008 Posts: 66 Location: Germany
|
Posted: Fri Jun 04, 2010 6:46 am Post subject: |
|
|
Probably due to the extreme template bloat. |
|
Back to top |
|
|
HateWork
Joined: 20 Oct 2007 Posts: 13
|
Posted: Tue Aug 31, 2010 12:22 am Post subject: DMD's fault: Issue 2254 |
|
|
This is due to DMD/Phobos' fault. Check out issue 2254, it's been there for a lot of time preventing newer versions to become the latest stable version and when more and more things are added to phobos and dmd the more imposible to go back and fix it. If Walter fixes this soon i'll build him a monument: http://d.puremagic.com/issues/show_bug.cgi?id=2254 |
|
Back to top |
|
|
|