Re: BDS2006 exe sizes



On 2006-02-23, Dodgy <Dodgy@xxxxxxxxxxxxxxxxxxxxx> wrote:
huge 6meg compared to 400K in D7.

Since the FPC one is with Full debugging-info-in-binary, I assume you configured
delphi to do the same? Specially don't forget to tick "td32 debug info" in
linker options :-)

Oh I tried all that, I ticked and unticked everything... It never got
me more than 300k off the size. I may have missed something though :-)

Probably -CX -XXs aka "the smartlinking" options in Lazarus. Note: full
build.

Generally, if in D6/D7 the minimal VCL app (a form) is 150-300k, growing
quickly to about 1MB if more widgets are used, and then growing slower,
comparable in Lazarus it is 500-600k, then growing to about 1.5MB, then
slower again. This is due to some OS independance overhead (which fattens
the minimal parts of the libs) and being more modernly set up.

This can be seen in Lazarus itself which is about 6MB when properly
compiled. (and then I mean 6MB .exe, no DLL/BPLs), working fine btw on a
medium speed P-I (say 166MHz), given enough memory.



.