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

Bo Berglund bo.berglund at gmail.com
Sat Jun 19 15:40:17 CEST 2021


On Fri, 18 Jun 2021 18:13:52 +0200, Jean SUZINEAU via fpc-pascal
<fpc-pascal at lists.freepascal.org> wrote:

>
>function _2d( _i: Integer): String;
>begin
>      Str( _i, _2d);
>      if Length(_2d) < 2 then _2d:= '0'+_2d;
>
>end;

Thanks,
it seems like this gets rid of the Format call, which probably brings in a lot
of un-needed stuff.
Now the stripped size is 67 kb for me! :-)

Strange name of a function, though, is that needed?


-- 
Bo Berglund
Developer in Sweden



More information about the fpc-pascal mailing list