<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">fpc-devel@lists.freepascal.org</a>> schrieb am Fr., 31. Dez. 2021, 16:58:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;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" target="_blank" rel="noreferrer">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 dir="auto"><br></div><div dir="auto">Regards,</div><div dir="auto">Sven </div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
</blockquote></div></div></div>