This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: powerpc & unaligned block moves with fp registers


On  8 Nov, Richard Kenner wrote:

> Perhaps, but I think the key issue is the one I raised in my last
> message: how slow is "slow"?

Slow in the case of misaligned accesses depends on the system; if the
hardware handles it by splitting up the accesses then it's likely to be
in the range of a few dotzend up to a few hundred cycles. If the acesses
emerge into the OS because the hardware cannot handle it then
the overhead is more likely to be in the range from a few hundred up to
several thousand cycles. It's really hard to give accurate numbers here 
since it depends very much on the CPU and in the latter case also on the
OS.

All one can say is: Avoid it on any price.

--
Servus,
       Daniel



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]