On Thu, Mar 02, 2000 at 09:47:43AM +0530, [EMAIL PROTECTED] wrote:
> 
> bus error occurs when you try to access a data type thru its
> address which is not properly aligned.
> eg: address of an int should be 4 byte aligned
> of an 8 byte data type ( double word?) 8 byte aligned
> & a data structure exceeding 8 byte size shud b 8 byte aligned.

SIGBUS happens under many circumstances. The one which you describe
above is called unaligned fault in computer architecture literature.
It's primary used on 64 bit architectures like Alpha, Sparc and IA-64
to reduce the extra memory reference. All these processors also provide
hooks to the operating system to fix problem with legacy code which
may not be properly aligned.

On i386, there are no unaligned faults. It's handled by hardware.

        -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.

Reply via email to