Mail Archives: djgpp/1997/05/20/10:08:35
>   Are you sure there are alignment problems on the PC. I use
> code that has 16bit wide array structures. And then has another 16bit
> wide array structure that is offset by 8bits and there is no problem.
> I thought PC less sensitive in this area than other machines.
> 
Well the 68K used to fault on misaligned memory accesses, so the x86 
is less sensitive in that regard.  But, if you have a 4 byte variable, and
its aligned, thats only one bus access to get it (on a 32 bit bus).  Screw
up the alignment (shift by 2 bytes),  and now your looking at 2 bus 
accesses to get it.  Memory is slow enough as is.
Andrew
- Raw text -