On Thu, Mar 02, 2000 at 02:20:15PM +0530, Kedar Patankar wrote:
> Hi,
>
> > Bus Error is very common and most of the times I get this error is because
> > of address alignment problems. For example, the int data type should start
>
> Agreed. But IIRC on intel hardware (x86) unaligned accesses only
> cause a performance hit (processor/pipeline stalls) but no faults. Do the
> newer processors fault (bus error) when you do an unaligned access??
http://sandpile.org/arch/except.htm
No such exception that I know of. The unaligned faults cause extra
memory reference.
For example, if you make a 4 byte reference to address 2-5, the process
needs to issue two 4 byte reads: 0-3, 4-7 and then extract the 4 bytes
2-5 and return the data. This may cause additional pipeline stalls, but
that's just a side effect.
-Arun
--------------------------------------------------------------------------
LI is all for free speech, but this list was created for a purpose --
to help popularise Linux in India. If your messages are counterproductive
to that purpose, your privileges to submit messages can and will be revoked.