python interpreter

g.franzkowiak g.franzkowiak at onlinehome.de
Tue Oct 11 17:34:54 CEST 2005


Hi everybody,

my interest is for the internals of the Python interpreter.

I've used up to now FORTH for something and this indirect interpreter is
 very smart.
--- ASM ---------------------------------------------------------------

NEXT:   LODSW           ; WA  <- [IP]
                        ; IP  <- IP+2
        MOV     T,WA    ; T   <- WA1 (CFA)
        JMP     [T]     ; JMP [CFA]

--- C -----------------------------------------------------------------

for (;;)
  {
      w = *ip++;
      (**w) ();
   }

-------------------------------------------------------------------------

Where can I find informations like this for Python ?

gerd



More information about the Python-list mailing list