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

Tomas Hajny XHajT03 at hajny.biz
Wed Jun 16 10:27:54 CEST 2021

On 2021-06-16 09:16, Mattias Gaertner via fpc-pascal wrote:
> On Wed, 16 Jun 2021 08:57:13 +0200
> Bo Berglund via fpc-pascal <fpc-pascal at lists.freepascal.org> wrote:
>> If I by habit add a bunch of often used units to the uses clause will
>> that affects the size of the compiled application even if they are
>> not in fact used?
> Yes, if they have e.g. initialization sections.

There are other conditions apart from contents of those particular 

1) Not all targets support smart-linking (i.e. the impact may be even 
larger for those).

2) It depends on options used for the particular compilation as well.


More information about the fpc-pascal mailing list