x86 Permits Unaligned Memory Access (It Will Never SEGFAULT)

Posted in kerneltrap.org on March 31, 2009 – 3:41pm

While fiddling with the Linux kernel during my last semester at the university (oh, I really miss those days), I was aware that unaligned access to a member of a structure can cause a segmentation fault. I tried to get one but to no avail. One day while I was tuning to GCC-help mailing list, I found the answer. I didn’t get one because I was using an x86 machine.

This entry was posted in Computer Architecture & Organization, Learning Experience and tagged , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s