c++ - How to get a "bus error"? -


i trying hard bus error.

one way misaligned access , have tried examples given here , here, no error me - programs execute fine.

is there situation sure produce bus error?

bus errors can invoked on hardware platforms that:

  1. require aligned access, and
  2. don't compensate unaligned access performing 2 aligned accesses , combining results.

you not have access such system.


Comments

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -