Bo Berglund via fpc-pascal <[email protected]> schrieb am Mi., 16. Juni 2021, 13:32:
> On Wed, 16 Jun 2021 12:30:55 +0200, Mattias Gaertner via fpc-pascal > <[email protected]> wrote: > > >> Since the final binary size after using strip -s on the exe file is > >> 271 kb it seems a bit big! > >> Or is there a lot behind the scenes I have missed? > > > >Classes is a hog. > > > I commented it away ane recompiled. > Worked fine so Classes is not needed. :) > > And the executable size after strip -s is now 126 kb. A big improvement! > > But compile did not say used unit Classes was not needed... > Because the Classes unit has initialization and finalization sections. If a unit contains such it is always considered as needed, after all these sections might be used to register something in a third unit. Regards, Sven >
_______________________________________________ fpc-pascal maillist - [email protected] https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
