Re: Compiling options on HP-UX with gcc 3.2

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Andrea,

That's a limitation of the HP-UX platform.  (And for many other platforms, too.)

Don't use odd memory addresses for data types that are not allowed to be accessed at odd memory locations.

For instance:
char s[10];
int* x = (int*)&s[1];
*x = 3; // !

! A *LOT* of platforms will bus error here.

UNLESS... you've found a bug where GCC is creating odd memory location data types that are not allowed to be accessed at odd memory locations, and it's not due to your own code's logic or structure packing __attribute__(()).

HTH,
--Eljay



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux