Re: [pypy-dev] How to run the tests under /opt/pypy/rpython/jit/metainterp/test ?

2016-12-05 Thread Shubha Ramani via pypy-dev
Yes that worked.pytest.py rpython/jit/metainterp/test/test_ajit.py Shubha On Monday, December 5, 2016 12:31 PM, Armin Rigo wrote: Hi, pytest.py rpython/jit/metainterp/test/test_ajit.py Also, can you please send plain-text e-mails without these huge signatures?  Thanks! A bientôt,

Re: [pypy-dev] please help. Why can't I do a pdb.set_trace() in llmodel.py at said line ?

2016-12-05 Thread Matti Picus
On 05/12/16 22:40, Shubha Ramani via pypy-dev wrote: Even if Jit is invoked during rpython translation ? Why not Armin ? I do see an assembler.py under rpython/jit/backend/x86 Note that this code is located under the jit directory. It is part of the JIT machinery, which kicks in to compile ho

Re: [pypy-dev] please help. Why can't I do a pdb.set_trace() in llmodel.py at said line ?

2016-12-05 Thread Matti Picus
On 05/12/16 22:33, Shubha Ramani via pypy-dev wrote: But in the process of turning RPython code into C code, there is a byte-code generation step correct ? Shubha You may want to carefully read the limited documentation available here https://rpython.readthedocs.io/en/latest/architecture.htm

Re: [pypy-dev] please help. Why can't I do a pdb.set_trace() in llmodel.py at said line ?

2016-12-05 Thread Shubha Ramani via pypy-dev
Even if Jit is invoked during rpython translation ? Why not Armin ?I do see an assembler.py under rpython/jit/backend/x86 On Monday, December 5, 2016 12:35 PM, Armin Rigo wrote: Hi, On 5 December 2016 at 21:33, Shubha Ramani wrote: > But in the process of turning RPython code into C

Re: [pypy-dev] please help. Why can't I do a pdb.set_trace() in llmodel.py at said line ?

2016-12-05 Thread Armin Rigo
Hi, On 5 December 2016 at 21:33, Shubha Ramani wrote: > But in the process of turning RPython code into C code, there is a byte-code > generation step correct ? No. Armin ___ pypy-dev mailing list pypy-dev@python.org https://mail.python.org/mailman/li

Re: [pypy-dev] please help. Why can't I do a pdb.set_trace() in llmodel.py at said line ?

2016-12-05 Thread Shubha Ramani via pypy-dev
But in the process of turning RPython code into C code, there is a byte-code generationstep correct ? Shubha On Monday, December 5, 2016 12:32 PM, Armin Rigo wrote: Hi, On 5 December 2016 at 20:40, Shubha Ramani wrote: > What I want to do is debug the translation to byte code process

Re: [pypy-dev] please help. Why can't I do a pdb.set_trace() in llmodel.py at said line ?

2016-12-05 Thread Armin Rigo
Hi, On 5 December 2016 at 20:40, Shubha Ramani wrote: > What I want to do is debug the translation to byte code process. Sorry, I don't understand what you mean. "Translation" here refers to turning RPython code to C code. Armin ___ pypy-dev mailing

Re: [pypy-dev] How to run the tests under /opt/pypy/rpython/jit/metainterp/test ?

2016-12-05 Thread Armin Rigo
Hi, pytest.py rpython/jit/metainterp/test/test_ajit.py Also, can you please send plain-text e-mails without these huge signatures? Thanks! A bientôt, Armin. ___ pypy-dev mailing list pypy-dev@python.org https://mail.python.org/mailman/listinfo/pypy-

Re: [pypy-dev] How to run the tests under /opt/pypy/rpython/jit/metainterp/test ?

2016-12-05 Thread Shubha Ramani via pypy-dev
for instance,rpython/bin/rpython rpython/jit/metainterp/test/test_ajit.py results in :  Shubha D. ramanishubharam...@gmail.com shubharam...@yahoo.com On Monday, December 5, 2016 11:57 AM, Shubha Ramani wrote:  Shubha D. ramanishubharam...@gmail.com shubharam...@yahoo.com _

[pypy-dev] How to run the tests under /opt/pypy/rpython/jit/metainterp/test ?

2016-12-05 Thread Shubha Ramani via pypy-dev
 Shubha D. ramanishubharam...@gmail.com shubharam...@yahoo.com___ pypy-dev mailing list pypy-dev@python.org https://mail.python.org/mailman/listinfo/pypy-dev

Re: [pypy-dev] please help. Why can't I do a pdb.set_trace() in llmodel.py at said line ?

2016-12-05 Thread Shubha Ramani via pypy-dev
OK. Please kindly give me a helpful nudge here. I have read this :https://morepypy.blogspot.com/2011/04/tutorial-part-2-adding-jit.html What I want to do is debug the translation to byte code process. How best to do that ? Use python print ?Since pdb is not going to work, I need some other way

Re: [pypy-dev] with rpython is there a way to not write out the "c" files ?

2016-12-05 Thread Armin Rigo
Hi again, On 5 December 2016 at 20:06, Shubha Ramani via pypy-dev wrote: > I'm trying to step through code and understand the interpreter. It turns out > that --no-source is useless. I do need it because I need byte-code > generation. Same answer, but I'll detail a bit more. If you want to unde

Re: [pypy-dev] please help. Why can't I do a pdb.set_trace() in llmodel.py at said line ?

2016-12-05 Thread Armin Rigo
Hi Shubha, You're trying to translate code that uses pdb.set_trace(). You can't do that. If you intend to debug that code, run it normally, don't try to translate it. Armin ___ pypy-dev mailing list pypy-dev@python.org https://mail.python.org/mailman

[pypy-dev] please help. Why can't I do a pdb.set_trace() in llmodel.py at said line ?

2016-12-05 Thread Shubha Ramani via pypy-dev
 Shubha D. ramanishubharam...@gmail.com shubharam...@yahoo.com___ pypy-dev mailing list pypy-dev@python.org https://mail.python.org/mailman/listinfo/pypy-dev

Re: [pypy-dev] with rpython is there a way to not write out the "c" files ?

2016-12-05 Thread Shubha Ramani via pypy-dev
I'm trying to step through code and understand the interpreter. It turns out that --no-source is useless. I do need it because I need byte-codegeneration. Shubha Shubha D. ramanishubharam...@gmail.com shubharam...@yahoo.com On Monday, December 5, 2016 10:57 AM, Ryan Gonzalez wrote: Sho

Re: [pypy-dev] with rpython is there a way to not write out the "c" files ?

2016-12-05 Thread Ryan Gonzalez
Should be --no-source, but I have to wonder...what exactly are you trying to do? On Mon, Dec 5, 2016 at 12:36 PM, Shubha Ramani via pypy-dev < pypy-dev@python.org> wrote: > It takes a long time and I don't really care about the backend c > implementation at the moment. > Do I just do a -s as show

[pypy-dev] with rpython is there a way to not write out the "c" files ?

2016-12-05 Thread Shubha Ramani via pypy-dev
It takes a long time and I don't really care about the backend c implementation at the moment.Do I just do a -s as shown below ? Command I'm running: /opt/pypy/rpython$ ./bin/rpython -Ojit --jit-backend=auto   ./translator/goal/targetsimpleread.py   --annotate, -a          Do type inference--no-an