Mail Archives: djgpp/1997/05/20/14:10:34
> > 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.
The newers x86 have an option to fault on misaligned memory accesses.
SET
------------------------------------ 0 --------------------------------
Visit my home page: http://www.geocities.com/SiliconValley/Vista/6552/
Salvador Eduardo Tropea (SET). (Electronics Engineer)
Address: Curapaligue 2124, Caseros, 3 de Febrero
Buenos Aires, (1678), ARGENTINA
TE: +(541) 759 0013
- Raw text -