I guess I shouldn't be in metainterp at all. But where do I capture OPTIMIZED
JIT ? just before it gets converted to ASM but after it's beenoptimized ? In
this youtube video: How the PyPy JIT works I see the guy pull up "JitViewer"
and easily see optimized JIT, assembly and source codeline by line. That is
similar to what I want. How do I get it ? I know JitViewer is called vmprof or
something now. So yes, Armin, to answer yourconcerns I'd like to take a "call"
instruction in the JIT-generated part of ASM and eventually map it back to a
Python function call. Am I makingmore sense now ?
|
|
|
| | |
|
|
|
| |
How the PyPy JIT works
Benjamin Peterson The Python community is abuzz about the major speed gains
PyPy can offer pure Python code. But... | |
|
|
On Friday, December 9, 2016 9:46 AM, Shubha Ramani <[email protected]>
wrote:
I assume it's backend/x86? Why is what I'm doing a waste of time though ?
Sent from Shubha Ramani's iPhone 7
> On Dec 9, 2016, at 9:34 AM, Shubha Ramani via pypy-dev <[email protected]>
> wrote:
>
> Armin you articulated exactly what I want. Please tell me the right place to
> look then ?
>
> Shubha
>
> Sent from Shubha Ramani's iPhone 7
>
>> On Dec 9, 2016, at 8:29 AM, Armin Rigo <[email protected]> wrote:
>>
>> Hi,
>>
>> On 9 December 2016 at 15:55, Shubha Ramani via pypy-dev
>> <[email protected]> wrote:
>>> I am no longer confused about that.
>>
>> I think the rest of your mail shows there is still confusion.
>>
>>> But so far, in order to be able to dump
>>> jitcodes, I have to instrument python code with
>>> "JitDriver", "merge_point", "meta_interp", etc...under the test directory -
>>
>> Maybe you should start again by describing in detail what you want to
>> do, from the start.
>>
>> Let me take a wild guess, completely unrelated to the questions you're
>> asking. Maybe
>> your goal is to run a "pypy" binary, which JITs some parts of the user
>> Python code.
>> What you want then is to map the raw machine code emitted in memory,
>> back to Python-
>> level information. For example, from an IP, you want an answer like
>> "this 'add' instruction
>> comes from JIT-compiling through this Python function, precisely here
>> [Python bytecode of a CALL], with the call inlined, and running this
>> other Python
>> function, precisely here [Python bytecode of a BINARY_ADD].
>>
>> If that's anywhere close to what you're looking for, then you are
>> looking at the wrong place.
>>
>>
>> A bientôt,
>>
>> Armin.
>
> _______________________________________________
> pypy-dev mailing list
> [email protected]
> https://mail.python.org/mailman/listinfo/pypy-dev
_______________________________________________
pypy-dev mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-dev