-j
flag and Pyston will spit out a .o file for each function it compiles, which you can then disassemble with objdump
id()
is defined: https://github.com/dropbox/pyston/blob/master/src/runtime/builtin_modules/builtins.cpp#L318
Python/graminit.c
and Include/graminit.h
are auto-generated from Grammar/Grammar
when you run make
.
graminit.c
and graminit.h
are generated. The only grammar file I can find is from_cpython/Lib/lib2to3/Grammar.txt
, but modifying this does not seem to trigger a regeneration of the graminit files.
Python-ast.h
file. And then extend the Pyston interpreter and jit.
src/codegen/irgen.cpp
be the right place to look for this?
-I
to the pyston process, which forces it to stay in the AST interpreter
-I
will force it to stay in codegen/ast_interpreter.cpp
and make things much simpler
$ ./pyston_dbg -I
Pyston v0.7.0 (rev f7e8fcf7d57c624da5ac8a8be7d0d55c260ff32e), targeting Python 2.7.8
>>
>>
>> escal x
reached an escal statement
>>
>>
>> def foo():
... escal y
... return 4
...
../../src/core/ast.h:1151: virtual bool pyston::ASTVisitor::visit_escal(pyston::AST_Escal *): Assertion `0' failed:
Someone called abort!
Aborted (core dumped)