I made a very little program in delphi (the source code+ICO file+forms
are only 24KB) and after I compiled it the EXE file is 250KB.
I'm almost sure that this program can be much smaller.
So: how can I compress this EXE file ?
Uri Hartmann
send the answer please to my email too:hart...@netvision.net.il
Of course this will only work if Delphi builds the entire VCL into every
executable rather than just the functionality required to resolve all of
the links.
Uri Hartmann <hart...@netvision.net.il> wrote in article
<32ce30b5...@news.netvision.net.il>...
> Hello !
>VCL, strip out every component that you don't use and recompile using that.
>You can have several builds of VCL with different contents and just load
>whichever is appropriate to your current project.
Uhh, you don't want to even TRY to do that. The object heirarcy is
very bizzare, and usually confusing. Don't do it, it'd take you
months/years to finish!!! The thing that you should notice as you
further develop is that the file size doesn't increase very rapidly
after that first initial jump... Also make sure that a tdstrp32
[exename] doesn't decrease the filesize.
>Of course this will only work if Delphi builds the entire VCL into every
>executable rather than just the functionality required to resolve all of
>the links.
Unfortunately, I don't believe the Delphi linker properly strips out
the dead code if its part of an object that is either directly or
indirectly accessed in you program.
trepalium
If it's such a dumb idea, then why did borland make it so easy to attempt?
You just go to the Component Menu, Install Option and remove the modules
that you don't want.
You can copy the .dcl files to wherever you want to keep them, and Open
Library lets you choose the one you want.
I've never tried it but it can't be that bad surely.
David
On 29 Jan 1997 10:00:33 GMT, "David O'Rourke" <dav...@unidec.co.uk>
wrote:
>Trepalium <Trep...@null.net> wrote