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

Marco van de Voort fpc at pascalprogramming.org
Wed Jun 16 13:18:42 CEST 2021

Op 2021-06-16 om 12:30 schreef Mattias Gaertner via fpc-pascal:
>> 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 had a look, and only tthreadlist (and with that tlist) were 
instantiated in the startupcode.

No other (RTTI) classes seem to be registered or otherwise referenced in 
the startup code, so then they could be smartlinked out?

Maybe some table does not contain weak references?

More information about the fpc-pascal mailing list