python - Where is the entry-point of the C code generating by pypy -
i'm using pypy translate python code c code. wrote simple script below:
def main(): print "hello world!" def entry_point(argv): main() return 0 def target(*args): return entry_point, none
then used translate.py --source test.py
. did generate c code successful. when make
code, generated executable file test-c
. cannot find main function in code using grep
, i'm wondering entry-point of code generating pypy. thank reading.
that's incorrect. grep pypy_g_entry_point. main() function inlined in example, won't it. if want rendered use --inline-threshold=0 translation parameter.
Comments
Post a Comment