Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
HP C/HP-UX Programmer's Guide: HP-UX Systems > Chapter 6 Migrating C Programs to HP-UX

Data Alignment

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Index

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).

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 2003 Hewlett-Packard Development Company, L.P.