Christo Crause via fpc-devel <fpc-devel@lists.freepascal.org> schrieb am
Fr., 31. Dez. 2021, 16:58:

> On Fri, Dec 31, 2021 at 4:41 PM Marco Borsari via fpc-devel <
> fpc-devel@lists.freepascal.org> wrote:
>
>> Hi,
>> on Linux with FPC 3.2.2 the executable size of programs compiled with
>> fpc -On -a (tried with n 2 or 4)
>> is smaller than when the assembler files are deleted (-a omitted).
>> Does it is an expected behaviour?
>>
>
> Using any of the -a options (not sure about -a5?) to output assembly also
> automatically switches to an external linker (for targets with internal
> linkers).  Differences in the executables are thus attributable to
> differences in generated output between the internal and external linkers.
>

The internal ELF linker isn't enabled by default.

But using -a switches to the external assembler instead of the internal one
and there the same point holds true that slightly different binary files
are generated.

Regards,
Sven

>
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Reply via email to