[pypy-commit] pypy win64-stage1: Added a bit to commondefs.h about the work in progress.

ctismer noreply at buildbot.pypy.org
Wed Nov 23 03:32:51 CET 2011

Author: Christian Tismer <tismer at stackless.com>
Branch: win64-stage1
Changeset: r49680:b181f2e7e428
Date: 2011-11-23 03:16 +0100

Log:	Added a bit to commondefs.h about the work in progress. A document
	about the migration should be added, too.

diff --git a/pypy/translator/c/src/commondefs.h b/pypy/translator/c/src/commondefs.h
--- a/pypy/translator/c/src/commondefs.h
+++ b/pypy/translator/c/src/commondefs.h
@@ -11,6 +11,21 @@
    In particular, Win64 is not supported because it has sizeof(long) == 4.
    To fix this, find and review all the places that cast a pointer to a long.
+   Update:
+   We are trying to lift this restriction for Win64:
+   Win64         int     long     long long     void*
+   --64-bit--    32      32         64          64
+   The migration to this platform is complicated and tedious, because
+   PyPy assumes that a void* fits into a long. Therefore, the created PyPy
+   will (first) have a 64 bit int type. The dependency of sys.maxint must
+   be removed in very many places, and the distinction between Python int
+   and long must be changed in explicit range checks.
+   This is work in progress with first successes.
 #include <limits.h>

More information about the pypy-commit mailing list