Changes

Jump to: navigation, search

Computer Architecture

13 bytes added, 01:12, 5 September 2014
Sub-word and Unaligned Access
Some processors do not have alignment-fixup hardware, and an unaligned access causes a processor exception. The operating system may ignore the unaligned access (usually leading to incorrect results), stop the program performing the unaligned access, or fix up the access in software and then resume execution of the process which caused the exception.
On a Linux system, the control file <code>/proc/cpu/alignment </code> controls how the operating system will handle alignment exceptions (on machines which lack alignment-fixup hardware). The possible values are:
0 = ignore

Navigation menu