[fpc-pascal] Minimal size of compiled library (DLL under Windows)

Marco van de Voort fpc at pascalprogramming.org
Sat Apr 3 14:56:20 CEST 2021


Op 2021-04-03 om 13:22 schreef LacaK via fpc-pascal:
>
> I am guessing, that there must be something in initialization sections 
> of units (SysUtils and Classes), which cause that some code is 
> included, right?
> Can I somehow to avoid this grow of size (for example I need from 
> Classes only TFPList)?

Not in an easy way at the moment, I don't expect it to change anytime soon.

The problem is probably the streaming system that the compiler can't 
easily determine if it is used runtime. This also has resourcestrings as 
errors, uses typeinfo etc etc.  I also see interface related support 
probably because tcomponent also implements interfaces.





More information about the fpc-pascal mailing list