Solved

does D7 make larger exes than D5?

Posted on 2003-10-21
8
243 Views
Last Modified: 2010-04-05
If you were to compile the same program in D5 and D7 how would the exe file sizes differ?
0
Comment
Question by:wolsen
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
8 Comments
 

Expert Comment

by:Konishiva
ID: 9595319
Maybe slightly, if there is some vcl component used that have a changed implementation.

0
 
LVL 8

Accepted Solution

by:
gmayo earned 20 total points
ID: 9597070
Depends how you compile it. If you compile it without the runtime libraries built in, then the size should be pretty much the same. However, the runtime libraries have grown and thus these will cause your program to be bigger if they're built in.

Geoff M.
0
 
LVL 17

Expert Comment

by:Wim ten Brink
ID: 9598346
Yes, but not always...

The TDataModule doesn't depend on the Forms unit anymore. The TDataModule is now defined in the Classes unit so any application that doesn't use the Forms unit but does contain data modules will actually be smaller now. But in general there are more objects added to the VCL and the size of the base object has increased, thus increasing the size of the final binary.

If you want smaller executables, use Delphi 2. Unfortunately D2 has it's limitations too.

Also keep in mind that by using the Windows unit only and almost none of the other Delphi libraries, you'll be able to create small executables again. You'll have to write a lot of stuff yourself but it will result in a small binary. The VCL is only for your ease-of-use and to improve your development speed. If ou don't like it, don't use it! ;-)
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 2

Author Comment

by:wolsen
ID: 9600463
Thank you for your responses.

I need a more quantitative answer.

Does anyone know the exact size differrence between the runtime libraries?

vcl50.bpl is 1.92 MB.... how big is vcl70.bpl?  ( if this is a valid comparison )

Can anyone compile the same VCL program with both versions, and tell me what the exe sizes are?
0
 
LVL 8

Expert Comment

by:gmayo
ID: 9601301
1.26Mb for vcl60.bpl
1.31Mb for vcl70.bpl

Some stuff has probably moved elsewhere which would explain why it has shrunk!

I've got 452k for a program, both in D6 and D7. Never used D5 so I can't say. Even if I could, you can't get a "qualitative answer" because that depends entirely on your program and what it uses!

Geoff M.
0
 
LVL 2

Author Comment

by:wolsen
ID: 9602144
How big is the exe if the program consists of a single blank form with no controls on it? (a "new" application)

In Delphi5, I get an exe that is 286K.

What do you get in Delphi7?
0
 
LVL 8

Expert Comment

by:gmayo
ID: 9602225
359k

Geoff M.
0
 

Expert Comment

by:SoulessZero
ID: 9623348
if you care that much about EXE size, then use Delphi 3 (like me, im still using Delphi 3) or write all code using Windows API (no VCL garbages). for me, i prefer write all code using windows API, coz it produce much much smaller EXE (16K) and faster EXE file than using VCL.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question