Search code examples
compiler-constructioncpujitpypyvm-implementation

Can PyPy run everywhere Python can?


I heard that PyPy has its own JIT compiler. I'm thinking of implementing a language using PyPy's translator script to convert the RPython to C. So I was wondering, where does PyPy run? Can it run everywhere Python does? Or can it only run on specific CPUs?


Solution

  • Reading the RPython source code, it seems that currently x86 and ARM (both 32/64 Bit) are supported for the jit.

    Without a jit, it should be every platform that sports an ANSI C compiler, or better, a GCC compatible one. Pypy is translated to plain (but not easily to read for humans) C.