<div dir="ltr"><div dir="ltr">On Mon, Mar 3, 2025 at 1:28 PM Larry McVoy <<a href="mailto:lm@mcvoy.com">lm@mcvoy.com</a>> wrote:</div><div class="gmail_quote gmail_quote_container"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
Even x86, it would appear, wants to do aligned loads.  I'm a little<br>
surprised by that though maybe I shouldn't be as there is a RISC<br>
implemented by the microcode under the x86 CPU.<br>
<br></blockquote><div>I don't think there's ever been a CPU design where unaligned accesses run at the same speed as naturally aligned accesses.  The worst case is an unaligned access that straddles a machine-word boundary.</div><div><br></div><div>-Paul W.<br></div></div></div>