Solved

does D7 make larger exes than D5?

Posted on 2003-10-21
8
239 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
Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

 
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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

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…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

708 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

15 Experts available now in Live!

Get 1:1 Help Now