0

Many language environments allow one to "disassemble" a provided function. Since Pypy compiles to C-code (if I understand things correctly). then it seems natural to be able to see a C-code dump from an expression, or a whole python file.

Can I do this? how?

Dan Oblinger
  • 489
  • 3
  • 15

1 Answers1

0

PyPy does not compile python bytecode to C code. The tracing JIT replaces a frequently used piece of code with generated machine code (assembly). You can turn on logging to save the JIT traces to a file and view them with vmprof or jitviewer.

mattip
  • 2,360
  • 1
  • 13
  • 13