[cfe-dev] Clang::SemaCXX/reinterpret-cast.cpp failing

Ahmed Charles ahmedcharles at gmail.com
Sun Nov 22 14:07:28 PST 2009


> "longs and pointers are 64 bits, and the rest is 32 bits or less" and
> "long longs and pointers are 64 bits, and the rest (including long) is
> 32 bits".  I think LLP64 is sometimes also called P64.  In short, on
> Windows, you've got sizeof(long) == 4, no matter if you're running in
> 32 bit or 64 bit mode.  But on most UNIX systems, sizeof(long) ==
> sizeof(void *), so it is 8 in 64 bit mode.
>

Interesting, I didn't know that. Thanks. I thought long was always 32 bits,
not sure why.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20091122/aae5f53a/attachment.html>


More information about the cfe-dev mailing list