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

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

html - Instapaper-like algorithm -

c# - How to execute a particular part of code asynchronously in a class -