[pypy-dev] Why isn't PyPy compiling itself not the same as CPython?

Maciej Fijalkowski fijall at gmail.com
Mon Mar 12 00:38:44 CET 2012


On Sun, Mar 11, 2012 at 4:34 PM, Christopher Swenson <vadius at gmail.com> wrote:
> This may be a known issue, but it's a little worrying.
>
> I compiled PyPy with CPython, and I got a different binary than when I
> compiled it with itself:
>
> -rwxrwxr-x 1 swenson swenson 59314173 2012-03-11 17:45 pypy-c*
> -rwxrwxr-x 1 swenson swenson 59297884 2012-03-11 18:52 pypy-c2
>
> I know that the final check with GCC is that it compiles itself with itself,
> and checks that it gets itself.
>
> Is there some randomness in translate.py?

The answer is "yes". You would get a slightly different result if you
compile it twice with the same binary even.


More information about the pypy-dev mailing list