[pypy-dev] Yet another trace tool!

Armin Rigo arigo at tunes.org
Sat Aug 28 23:02:26 CEST 2004

Hi Richard,

On Fri, Aug 27, 2004 at 04:12:14PM +0100, Richard Emslie wrote:
> Ok.  Can you drop us a copy of genc.py which was doing something with the 
> annotations if that is ok (doesn't need to be any nice state)? Thanks.

Done.  Attached to this e-mail is the small test script I use...

Oups, I forgot to CC all my previous answers to the mailing list.  Sorry, I am
going to resend them now...

-------------- next part --------------
import autopath
import sys
from pypy.translator.translator import Translator
from pypy.translator.test import snippet
from pypy.translator.tool.buildpyxmodule import make_module_from_c
from pypy.tool.udir import udir
from genc import GenC

t = Translator(snippet.is_perfect_number)

name = t.functions[0].func_name

GenC(sys.stdout, t, name)

##cfile = udir.join('%s.c' % name)
##f = cfile.open('w')
##GenC(f, t, name)


#mod = make_module_from_c(cfile)

More information about the Pypy-dev mailing list