[Info-vax] x86-64 data aligment / faulting

Simon Clubley clubley at remove_me.eisner.decus.org-Earth.UFP
Mon Feb 28 13:29:42 EST 2022


On 2022-02-27, Arne Vajhøj <arne at vajhoej.dk> wrote:
>
> I modified the program to test with different data sizes, verified
> that the code was indeed working on an unaligned addresses and
> tried both sequential and random access to array.
>
> I simply can't get a big difference between aligned and unaligned access.
>

Have you looked at the generated code to verify that unaligned access
is really occuring ?

Another possibility, depending on how smart the compiler is, is that
it could always do aligned access lookups and then only extract the
data it needs out of each lookup.

Simon.

-- 
Simon Clubley, clubley at remove_me.eisner.decus.org-Earth.UFP
Walking destinations on a map are further away than they appear.



More information about the Info-vax mailing list