[fpc-pascal] Will the size of an executable depend on the uses clause

Mattias Gaertner nc-gaertnma at netcologne.de
Wed Jun 16 12:30:55 CEST 2021


On Wed, 16 Jun 2021 12:26:54 +0200
Bo Berglund via fpc-pascal <fpc-pascal at lists.freepascal.org> wrote:

> On Wed, 16 Jun 2021 12:08:26 +0200 (CEST), Michael Van Canneyt via
> fpc-pascal <fpc-pascal at lists.freepascal.org> wrote:
> 
> >FPC/lazarus tell you which units are unused, and in the Lazarus IDE
> >you can use the quick actions of the message dialog to quickly
> >remove all unused units. I use it all the time.  
> 
> Thanks, I will have a look and see what happens if you tell me where
> in Lazarus to look.

Compile. When the compiler gives the message unit not used. Right click
on the message.


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

Mattias


More information about the fpc-pascal mailing list