Re: Linux/IA-64 byte order

Arvind Sankar (arvinds@mit.edu)
Tue, 9 Mar 1999 11:55:59 -0500


On Tue, Mar 09, 1999 at 12:22:10PM +0100, Gabriel Paubert wrote:
> BTW: casting of integer pointers in C is a nop AFAICT, simply the size
> of the data accessed by the pointer is changed.

that's probably true, but I think it would be nice to be able to
assume that if longptr points to a location containing 1L, then
* (short int *) longptr == 1.

This doesnt work on sparc etc. Again mostly binary compatibility issues are
there between programs which took pointers to fields which later got extended.
All of them _have_ to be recompiled. On little endian, you can get away with
not doing so.

-- arvind

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/