Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Python
interpreter vs. compiled
 

Index | Next | Previous | View Flat


castironpi at gmail

Jul 17, 2008, 3:08 PM


Views: 765
Permalink
interpreter vs. compiled

I'm curious about some of the details of the internals of the Python
interpreter:

I understand C from a hardware perspective.

x= y+ 1;

Move value from place y into a register
Add 1 to the value in the register
Move the addition's result to place x

The Python disassembly is baffling though.

>>> y= 3
>>> dis.dis('x=y+1')
0 SETUP_LOOP 31037 (to 31040)
3 STORE_SLICE+3
4 <49>

What are SETUP_LOOP and STORE_SLICE? What are these instructions?
--
http://mail.python.org/mailman/listinfo/python-list

Subject User Time
interpreter vs. compiled castironpi at gmail Jul 17, 2008, 3:08 PM
    Re: interpreter vs. compiled ivlenin at gmail Jul 17, 2008, 3:37 PM
        Re: interpreter vs. compiled castironpi at gmail Jul 17, 2008, 4:15 PM
    Re: interpreter vs. compiled tjreedy at udel Jul 17, 2008, 6:47 PM
    Re: interpreter vs. compiled kay.schluehr at gmx Jul 17, 2008, 9:39 PM
    Re: interpreter vs. compiled castironpi at gmail Jul 17, 2008, 11:31 PM
    Re: interpreter vs. compiled m.liu.jin at gmail Jul 17, 2008, 11:58 PM
    Re: interpreter vs. compiled castironpi at gmail Jul 18, 2008, 11:17 AM
    Re: interpreter vs. compiled thermostat at gmail Jul 18, 2008, 12:13 PM
    Re: interpreter vs. compiled castironpi at gmail Jul 21, 2008, 11:37 AM
    Re: interpreter vs. compiled timr at probo Jul 22, 2008, 9:38 PM
        Re: interpreter vs. compiled castironpi at gmail Jul 23, 2008, 9:38 AM
    Re: interpreter vs. compiled martin at v Jul 23, 2008, 10:08 AM
        Re: interpreter vs. compiled castironpi at gmail Jul 23, 2008, 9:35 PM
    Re: interpreter vs. compiled fredrik at pythonware Jul 23, 2008, 1:18 PM
    Re: interpreter vs. compiled timr at probo Jul 24, 2008, 9:04 PM
        Re: interpreter vs. compiled bob.martin at excite Jul 25, 2008, 2:56 AM
        Re: interpreter vs. compiled nagle at animats Jul 25, 2008, 11:24 AM
        Re: interpreter vs. compiled castironpi at gmail Jul 26, 2008, 10:02 PM
    Re: interpreter vs. compiled fuzzyman at gmail Jul 28, 2008, 3:58 PM
    Re: interpreter vs. compiled castironpi at gmail Jul 28, 2008, 9:21 PM
    Re: interpreter vs. compiled timr at probo Jul 28, 2008, 11:46 PM
        Re: interpreter vs. compiled castironpi at gmail Jul 29, 2008, 9:54 PM
    Re: interpreter vs. compiled wuwei23 at gmail Jul 29, 2008, 5:39 AM
    Re: interpreter vs. compiled castironpi at gmail Jul 29, 2008, 9:20 PM
    RE: interpreter vs. compiled dinov at exchange Jul 29, 2008, 10:12 PM
    Re: interpreter vs. compiled castironpi at gmail Jul 29, 2008, 11:40 PM
    RE: interpreter vs. compiled dinov at exchange Jul 30, 2008, 8:40 AM
    Re: interpreter vs. compiled tjreedy at udel Jul 30, 2008, 9:12 AM
    Re: interpreter vs. compiled timr at probo Jul 30, 2008, 11:17 PM
        Re: interpreter vs. compiled castironpi at gmail Jul 31, 2008, 10:11 PM
    Re: interpreter vs. compiled bob.martin at excite Jul 31, 2008, 1:46 AM
    Re: interpreter vs. compiled duncan.booth at invalid Jul 31, 2008, 2:02 AM
        Re: interpreter vs. compiled tjreedy at udel Jul 31, 2008, 9:29 PM
    Re: interpreter vs. compiled paul at boddie Aug 1, 2008, 3:24 AM
    Re: interpreter vs. compiled tjreedy at udel Aug 1, 2008, 1:38 PM
    Re: interpreter vs. compiled castironpi at gmail Aug 1, 2008, 11:33 PM
    Re: interpreter vs. compiled timr at probo Aug 2, 2008, 11:48 AM
    Re: interpreter vs. compiled timr at probo Aug 2, 2008, 12:02 PM
        Re: interpreter vs. compiled castironpi at gmail Aug 2, 2008, 4:26 PM
    Re: interpreter vs. compiled paul at boddie Aug 2, 2008, 12:31 PM
    Re: interpreter vs. compiled paulo.jpinto at gmail Aug 5, 2008, 7:21 AM
    Re: interpreter vs. compiled castironpi at gmail Aug 5, 2008, 10:12 AM
    Re: interpreter vs. compiled arkanes at gmail Aug 5, 2008, 11:54 AM
    Re: interpreter vs. compiled paulo.jpinto at gmail Aug 5, 2008, 12:09 PM
    Re: interpreter vs. compiled paul at boddie Aug 5, 2008, 3:22 PM
    Re: interpreter vs. compiled castironpi at gmail Aug 5, 2008, 10:35 PM
    Re: interpreter vs. compiled castironpi at gmail Aug 8, 2008, 9:47 PM

  Index | Next | Previous | View Flat
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.