Re: [RFC] Documentation about unaligned memory access

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Andi Kleen
Date: Thursday, November 22, 2007 - 7:07 pm

Robert Hancock <hancockr@shaw.ca> writes:

That depends, e.g. for SSE2 they can be forbidden.


On Opteron the typical cost of a misaligned access is a single cycle
and some possible penalty to load-store forwarding.

On Intel it is a bit worse, but not all that much. Unless you do 
a lot of accesses of it in a loop it's not really worth something
caring about too much.

-Andi
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [RFC] Documentation about unaligned memory access, Robert Hancock, (Thu Nov 22, 6:24 pm)
Re: [RFC] Documentation about unaligned memory access, Andi Kleen, (Thu Nov 22, 7:07 pm)