Link to home
Start Free TrialLog in
Avatar of ___Radian_
___Radian_

asked on

Beginner Delphi

Hey i am all new to delphi and i am starting out making simple applications.  Once i have compiled then into .exe format they seem to be pretty large( 200k for a simple addition program for instance). I am assuming it is including a load of libraries that i dont need so how can i get rid of these, all i used was a button and 3 edit boxes! :)

Thanks in Advance!
Avatar of Y SD
Y SD
Flag of Greece image

Hi,
200K is not bad, I think that is as low as it will get, but you can check a couple of things: 1) Go to menu, Project->Options->Packages and see if the check box "Build with runtime packages" and untick it. and try again...2)then at the same place remove some of the packages which are listed under the checkbox I mentioned above.

good luck
ASKER CERTIFIED SOLUTION
Avatar of Lukasz Lach
Lukasz Lach

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Kalroth
Kalroth

Delphi executeables are always big, even if you compile an empty project. There's a lot of reasons why VCL compiled files are so big, but I wont get into it here, since that is an entirely different topic. But this is why the XCL/KOL project was started a while back.

Combine KOL with the UPX exe packer (mentioned above by anakin) and you can easily get executeables less than 10 kilobytes and full programs less than 40 kilobytes.
But this is only recommended if you really need the small executeables, specially since you said that you're a beginner. KOL is not as userfriendly as VCL.

You can read more about KOL at:
http://xcl.cjb.net/
Avatar of ___Radian_

ASKER

thank you,  the tick was not in the box and i put it in and they are down to 20k not compiled :)