Solved

does D7 make larger exes than D5?

Posted on 2003-10-21
8
240 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
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
 
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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

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…
This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…

896 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now