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

ruby - When to use an ORM (Sequel, Datamapper, AR, etc.) vs. pure SQL for querying -

php - PHPDoc: @return void necessary? -

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