Page 1 of 1

executable file size

Posted: 30.12.2005, 11:19
by killerjohn
At this moment my project's .exe file size is about 5 MB (!!!). I need to minimize this. Are there any compiler directive in ZeOS, which turns off some database engines ? (I need only MySQL and Firebird)


(sorry for my baaaaad English :roll: )

Posted: 30.12.2005, 11:31
by killerjohn
uuups. I've found the directives in zeos.inc. :oops:

Posted: 03.01.2006, 11:01
by mdaems
Hi Killerjohn,

Did you already hear about the tool upx? It reduces exe-sizes usually a lot. (50% and more)

Mark

Posted: 04.01.2006, 13:24
by btrewern
If you are talking about exe compression progs. See here for a discussion and a useful utility: http://www.jrsoftware.org/striprlc.php

Regards,

Ben

Posted: 06.01.2006, 16:47
by killerjohn
Thank you very much!

Posted: 07.01.2006, 21:15
by killerjohn
Are there any compiler directives to disable TZQuery, TZTable, TZStoredProc, TZSQLMetadata, TZSQLProcessor, TZSQLMonitor, TZSequance components ? (I need only TZConnection, TZReadOnlyQuery, TZUpdateSQL) :oops:

Posted: 09.01.2006, 10:36
by btrewern
I doubt it. If you really need to reduce the size of your application then you could try just using ZDBC. See the knowledge base.

Ben

Posted: 09.01.2006, 15:31
by killerjohn
thank you :(

Posted: 11.01.2006, 10:57
by zippo
To reduce the size (final size approx. 30-40 of the original) I use both StripReloc and UPX. Never had any problems.

Another method to reduce the EXEsize is to drop some units in the "uses" part of the code - usually when the project goes on, units tend to accumulate with the adding of new components, but when you remove those components, the units doesn't delete.