This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
RE: patches for Irix binutils 2.18 -- removal of some casts
On Thu, 23 Oct 2008, Jay wrote:
> I mean, you know, I wonder, in the absence of widespread C99 support,
> what to store pointers in if I really want an integer, and later back to
> a pointer, with no loss. Long is not it, it is wrong on Win64.
Use a union of the types you are interested in. You avoid all the
aliasing problems this way too. And reasonable ABIs pass small unions
around in registers so no run-time penalty.
Maciej