-
- Downloads
Change object representation from 1 big union to individual structs.
A big change. Micro Python objects are allocated as individual structs with the first element being a pointer to the type information (which is itself an object). This scheme follows CPython. Much more flexible, not necessarily slower, uses same heap memory, and can allocate objects statically. Also change name prefix, from py_ to mp_ (mp for Micro Python).
Showing
- py/asmthumb.c 1 addition, 1 deletionpy/asmthumb.c
- py/bc.h 2 additions, 101 deletionspy/bc.h
- py/bc0.h 98 additions, 0 deletionspy/bc0.h
- py/builtin.c 176 additions, 145 deletionspy/builtin.c
- py/builtin.h 27 additions, 24 deletionspy/builtin.h
- py/compile.c 614 additions, 614 deletionspy/compile.c
- py/compile.h 1 addition, 1 deletionpy/compile.h
- py/emit.h 3 additions, 3 deletionspy/emit.h
- py/emitbc.c 93 additions, 93 deletionspy/emitbc.c
- py/emitcommon.c 2 additions, 2 deletionspy/emitcommon.c
- py/emitcpy.c 5 additions, 5 deletionspy/emitcpy.c
- py/emitinlinethumb.c 16 additions, 16 deletionspy/emitinlinethumb.c
- py/emitnative.c 16 additions, 14 deletionspy/emitnative.c
- py/emitpass1.c 2 additions, 2 deletionspy/emitpass1.c
- py/gc.c 1 addition, 1 deletionpy/gc.c
- py/lexer.c 92 additions, 92 deletionspy/lexer.c
- py/lexer.h 128 additions, 134 deletionspy/lexer.h
- py/map.c 48 additions, 45 deletionspy/map.c
- py/map.h 26 additions, 19 deletionspy/map.h
- py/misc.h 2 additions, 0 deletionspy/misc.h
Loading
Please register or sign in to comment