executable file size

Forum related to version 6.5.1 (alpha) and 6.6.x (beta) of ZeosLib's DBOs

Moderators: gto, cipto_kh, EgonHugeist

Post Reply
killerjohn
Fresh Boarder
Fresh Boarder
Posts: 22
Joined: 23.11.2005, 09:19

executable file size

Post 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: )
killerjohn
Fresh Boarder
Fresh Boarder
Posts: 22
Joined: 23.11.2005, 09:19

Post by killerjohn »

uuups. I've found the directives in zeos.inc. :oops:
User avatar
mdaems
Zeos Project Manager
Zeos Project Manager
Posts: 2766
Joined: 20.09.2005, 15:28
Location: Brussels, Belgium
Contact:

Post by mdaems »

Hi Killerjohn,

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

Mark
btrewern
Expert Boarder
Expert Boarder
Posts: 193
Joined: 06.10.2005, 18:51

Post 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
killerjohn
Fresh Boarder
Fresh Boarder
Posts: 22
Joined: 23.11.2005, 09:19

Post by killerjohn »

Thank you very much!
killerjohn
Fresh Boarder
Fresh Boarder
Posts: 22
Joined: 23.11.2005, 09:19

Post by killerjohn »

Are there any compiler directives to disable TZQuery, TZTable, TZStoredProc, TZSQLMetadata, TZSQLProcessor, TZSQLMonitor, TZSequance components ? (I need only TZConnection, TZReadOnlyQuery, TZUpdateSQL) :oops:
btrewern
Expert Boarder
Expert Boarder
Posts: 193
Joined: 06.10.2005, 18:51

Post 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
killerjohn
Fresh Boarder
Fresh Boarder
Posts: 22
Joined: 23.11.2005, 09:19

Post by killerjohn »

thank you :(
zippo
Silver Boarder
Silver Boarder
Posts: 322
Joined: 12.10.2005, 18:01
Location: Slovenia

Post 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.
Post Reply