Previous: 19.4 Using Visitors to Up: 19. Python compiler package Next: 20. SGI IRIX Specific

19.5 Bytecode Generation

The code generator is a visitor that emits bytecodes. Each visit method can call the emit() method to emit a new bytecode. The basic code generator is specialized for modules, classes, and functions. An assembler converts that emitted instructions to the low-level bytecode format. It handles things like generator of constant lists of code objects and calculation of jump offsets.


Previous: 19.4 Using Visitors to Up: 19. Python compiler package Next: 20. SGI IRIX Specific
Release 2.2.3, documentation updated on 30 May 2003.
See About this document... for information on suggesting changes.

AltStyle によって変換されたページ (->オリジナル) /