Optimizing 0-displacement jumps on i386
Simon Richter
Simon.Richter@hogyros.de
Tue Aug 12 05:31:20 GMT 2025
Hi,
On 8/12/25 03:19, H. Peter Anvin wrote:
> Arguably this should be merged with subsequent alignment padding if it
> fits within one instruction. However, in order to actually be effective
> in any meaningful way, this version of the optimization probably needs
> to be performed in the linker, or it will simply never happen if the
> code is compiled with linker garbage collection, which is pretty common
> these days.
x86 also doesn't use linker relaxations as much as other platforms --
besides historical reasons, I'm also not entirely sure if the data
format to describe relaxations is expressive enough for the long list of
alternative representations.
Simon
More information about the Binutils
mailing list