RFC: Cygwin 64 bit?
Tue Jun 28 12:54:00 GMT 2011
On 06/28/2011 06:31 AM, Earnie wrote:
> just, well, ignorant and I agree that the sizeof(long) == sizeof(void *)
> makes sense except for the fact that the C standard states in the final
> draft version in section 22.214.171.124.1 the size of data type long is 2^32 -
> 1 and defines long long as 2^64 - 1.
Those are minimum compliant sizes, not absolutes. A 64-bit long is
perfectly legal by the C standard. Likewise, a 16-bit int is perfectly
legal by the C standard, even though these days int is almost always
> It doesn't account for the
> variance in the sizeof(void *) except to say that it is equivalent to
> size of any other pointer of any other data type. Because of this LLP64
> makes a lot of sense.
In my mind, LLP64 makes absolutely zero sense. Microsoft broke lots of
programs that previously used to assume that any pointer could be
converted to a long and back. LP64 is the way to go for cygwin.
Eric Blake email@example.com +1-801-349-2682
Libvirt virtualization library http://libvirt.org
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 619 bytes
Desc: OpenPGP digital signature
More information about the Cygwin-developers