python-on-a-chip online compiler

Dependencies:   mbed TSI

Embed: (wiki syntax)

« Back to documentation index

PmCo_s Struct Reference

PmCo_s Struct Reference

Code Object. More...

#include <codeobj.h>

Data Fields

PmObjDesc_t od
 Object descriptor.
uint8_t const * co_codeimgaddr
 Address in progmem of the code image, or of code img obj in heap.
pPmTuple_t co_names
 Address in RAM of names tuple.
pPmTuple_t co_consts
 Address in RAM of constants tuple.
uint8_t const * co_codeaddr
 Address in memspace of bytecode (or native function)
uint8_t const * co_lnotab
 Address in memspace of the line number table.
uint8_t const * co_filename
 Address in memspace of the filename.
uint16_t co_firstlineno
 Line number of first source line of lnotab.
pPmTuple_t co_cellvars
 Address in RAM of cellvars tuple.
uint8_t co_nfreevars
 Number of freevars.
PmMemSpace_t co_memspace:8
 Memory space selector.
uint8_t co_argcount
 Number of positional arguments the function expects.
uint8_t co_flags
 Compiler flags.
uint8_t co_stacksize
 Stack size.
uint8_t co_nlocals
 Number of local variables.

Detailed Description

Code Object.

An extended object that holds only the most frequently used parts of the static code image. Other parts can be obtained by inspecting the code image itself.

Definition at line 66 of file codeobj.h.


Field Documentation

uint8_t co_argcount

Number of positional arguments the function expects.

Definition at line 98 of file codeobj.h.

Address in RAM of cellvars tuple.

Definition at line 90 of file codeobj.h.

uint8_t const* co_codeaddr

Address in memspace of bytecode (or native function)

Definition at line 77 of file codeobj.h.

uint8_t const* co_codeimgaddr

Address in progmem of the code image, or of code img obj in heap.

Definition at line 71 of file codeobj.h.

Address in RAM of constants tuple.

Definition at line 75 of file codeobj.h.

uint8_t const* co_filename

Address in memspace of the filename.

Definition at line 83 of file codeobj.h.

uint16_t co_firstlineno

Line number of first source line of lnotab.

Definition at line 85 of file codeobj.h.

uint8_t co_flags

Compiler flags.

Definition at line 100 of file codeobj.h.

uint8_t const* co_lnotab

Address in memspace of the line number table.

Definition at line 81 of file codeobj.h.

Memory space selector.

Definition at line 96 of file codeobj.h.

Address in RAM of names tuple.

Definition at line 73 of file codeobj.h.

uint8_t co_nfreevars

Number of freevars.

Definition at line 92 of file codeobj.h.

uint8_t co_nlocals

Number of local variables.

Definition at line 104 of file codeobj.h.

uint8_t co_stacksize

Stack size.

Definition at line 102 of file codeobj.h.

Object descriptor.

Definition at line 69 of file codeobj.h.