<div dir="ltr"><div dir="ltr"></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Dec 31, 2021 at 10:43 PM Sven Barth via fpc-devel <<a href="mailto:fpc-devel@lists.freepascal.org">fpc-devel@lists.freepascal.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto"><div><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Christo Crause via fpc-devel <<a href="mailto:fpc-devel@lists.freepascal.org" target="_blank">fpc-devel@lists.freepascal.org</a>> schrieb am Fr., 31. Dez. 2021, 16:58:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"></div><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Dec 31, 2021 at 4:41 PM Marco Borsari via fpc-devel <<a href="mailto:fpc-devel@lists.freepascal.org" rel="noreferrer" target="_blank">fpc-devel@lists.freepascal.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi,<br>
on Linux with FPC 3.2.2 the executable size of programs compiled with<br>
fpc -On -a (tried with n 2 or 4)<br>
is smaller than when the assembler files are deleted (-a omitted).<br>
Does it is an expected behaviour?<br></blockquote><div><br></div><div>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.</div></div></div></blockquote></div></div><div dir="auto"><br></div><div dir="auto">The internal ELF linker isn't enabled by default. </div><div dir="auto"><br></div><div dir="auto">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. </div></div></blockquote><div><br></div><div>Thanks for the clarification Sven.<br></div></div></div>