|
|
HP C/HP-UX Programmer's Guide: HP 9000 Computers > Chapter 6 Migrating C Programs to HP-UX Data Alignment |
|
The HP 9000 workstations and servers are more strict than other machines with respect to data alignment. Misaligned data addresses cause bus errors when attempting to dereference them. Use the +w1 option when compiling to report occurrences of "Casting from loose to strict alignment." Fix occurrences that result from using the address of a more loosely aligned item (such as char) to access a more strictly aligned item (such as int). |
|