___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!
Thanks in Advance!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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/
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/
Read this question
https://www.experts-exchange.com/questions/20382049/How-to-minimize-delphi-exe-size.html
maybe useful
regards
m.reza
https://www.experts-exchange.com/questions/20382049/How-to-minimize-delphi-exe-size.html
maybe useful
regards
m.reza
ASKER
thank you, the tick was not in the box and i put it in and they are down to 20k not compiled :)
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
good luck