Portability and BS

Henry Spencer henry at utzoo.uucp
Fri May 27 03:01:07 AEST 1988


> This alignment issue is not so simple.  In the IBM 360 family, the 360
> machines required "ints" to be aligned mod 4; the 370 and
> later processors did not... the 68020 again relaxes the alignment
> restrictions.

Remember, too, that both the 370 and the 68020 impose serious performance
penalties on unaligned accesses.  Most any unaligned-operand machine will
end up doing so, unless it only has an 8-bit memory bus.  Alignment is
*always* a good idea.
-- 
"For perfect safety... sit on a fence|  Henry Spencer @ U of Toronto Zoology
and watch the birds." --Wilbur Wright| {ihnp4,decvax,uunet!mnetor}!utzoo!henry



More information about the Comp.lang.c mailing list