[fpc-devel] Assembler file option (-a)
Sven Barth
pascaldragon at googlemail.com
Fri Dec 31 21:43:22 CET 2021
Christo Crause via fpc-devel <fpc-devel at 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 at 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20211231/e7bf7c33/attachment-0001.htm>
More information about the fpc-devel
mailing list