[fpc-devel] Assembler file option (-a)

Christo Crause christo.crause at gmail.com
Sat Jan 1 12:11:21 CET 2022


On Fri, Dec 31, 2021 at 10:43 PM Sven Barth via fpc-devel <
fpc-devel at lists.freepascal.org> wrote:

> 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.
>

Thanks for the clarification Sven.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20220101/af7fbe9d/attachment.htm>


More information about the fpc-devel mailing list