Can PyPy/RPython be used to produce a small standalone executable?

后端 未结 1 1171
野趣味
野趣味 2021-02-01 04:21

(Or, \"Can PyPy/RPython be used to compile/translate Python to C/C++ without requiring the Python runtime?\")

I have tried to comprehend PyPy with its RPython a

相关标签:
1条回答
  • 2021-02-01 04:36

    Yes, PyPy can produce standalone executables from RPython code. That means, you need to follow all the awkward RPython rules when it comes to writing code. Your Python code is completely unlikely to function out of the box and porting existing Python code is usually not fun. It won't make executables as small as C, but for example rpystone target (from pypy/translator/goal) using boehm GC is 80k on 64bit after stripping.

    0 讨论(0)
提交回复
热议问题