Re:Firefox 32-bit Linux Support to End in 2026
by crest on Monday September 08, 2025 @02:21PM
(#45171882)
Afaik runtime linkers can't convert a function call into a single non-call instruction.
[ Parent
| on HN ]
Re:Firefox 32-bit Linux Support to End in 2026
by PhilipRoman on Monday September 08, 2025 @04:35PM
(#45173622)
Linux kernel has an interesting optimization using the ALTERNATIVE macro, where you can directly specify one of two instructions and it will be patched at runtime depending on cpu flags. No function calls needed (although you can have a function call as one of the instructions). It's a bit more messy in userspace where you have to respect platform page flags, etc. but it should be possible.