News for hackers. Stuff that matters.
Re:Faster software through register based calling by hyperman1 on Thursday November 25, 2021 @04:31AM (#29339730)
Note that it uses ax (16 bits) instead of rax (64 bits). I'd assume it has opcode 0x66 0x90, a 2 byte nop.

Now if the author can provide some more details, we'll see if the call is aligned on some interesting boundary.

I always wonder how much aligning code helps in real code. They seem waste a lot of bytes in the code segment. Aligning data, yes, that changes a lot, but the return position of a call in code?

Re:Faster software through register based calling by infberg on Thursday November 25, 2021 @05:54AM (#29340180)
https://devblogs.microsoft.com/dotnet/loop-alignment-in-net-...

Is a good post in regards to code alignment effects.

Re:Faster software through register based calling by hyperman1 on Thursday November 25, 2021 @10:00AM (#29341895)
That's an article worthy of its own HN post. Thanks