Archive for the ‘Exceptions and error handling’ Category

Bus Error

Bus error occurs when hardware tells the OS about a problematic memory reference.  In practice, a bus error is almost always caused by a misaligned read or write.  It’s called a bus error, because the address bus is the component that chokes if a misaligned load or store is requested.
union {    char a[10];    int i;}u;
A [...]

Continue Reading..
Posted in Uncategorized