File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change 77
77
#define MICROPY_NONSTANDARD_TYPECODES (0)
78
78
#define MICROPY_OPT_COMPUTED_GOTO (1)
79
79
#define MICROPY_OPT_COMPUTED_GOTO_SAVE_SPACE (CIRCUITPY_COMPUTED_GOTO_SAVE_SPACE)
80
+ #define MICROPY_OPT_LOAD_ATTR_FAST_PATH (CIRCUITPY_OPT_LOAD_ATTR_FAST_PATH)
81
+ #define MICROPY_OPT_CACHE_MAP_LOOKUP_IN_BYTECODE (CIRCUITPY_OPT_CACHE_MAP_LOOKUP_IN_BYTECODE)
80
82
#define MICROPY_PERSISTENT_CODE_LOAD (1)
81
83
82
84
#define MICROPY_PY_ARRAY (1)
Original file line number Diff line number Diff line change @@ -145,6 +145,17 @@ CFLAGS += -DCIRCUITPY_DIGITALIO=$(CIRCUITPY_DIGITALIO)
145
145
CIRCUITPY_COMPUTED_GOTO_SAVE_SPACE ?= 0
146
146
CFLAGS += -DCIRCUITPY_COMPUTED_GOTO_SAVE_SPACE=$(CIRCUITPY_COMPUTED_GOTO_SAVE_SPACE )
147
147
148
+ CIRCUITPY_OPT_LOAD_ATTR_FAST_PATH ?= 1
149
+ CFLAGS += -DCIRCUITPY_OPT_LOAD_ATTR_FAST_PATH=$(CIRCUITPY_OPT_LOAD_ATTR_FAST_PATH )
150
+
151
+ # This is disabled because it changes the bytecode format. We could choose to enable it
152
+ # when we go to 8.x, but probably not for 7.1.
153
+ CIRCUITPY_OPT_CACHE_MAP_LOOKUP_IN_BYTECODE ?= 0
154
+ CFLAGS += -DCIRCUITPY_OPT_CACHE_MAP_LOOKUP_IN_BYTECODE=$(CIRCUITPY_OPT_CACHE_MAP_LOOKUP_IN_BYTECODE )
155
+ ifeq ($(CIRCUITPY_OPT_CACHE_MAP_LOOKUP_IN_BYTECODE ) ,1)
156
+ MPY_CROSS_FLAGS += -mcache-lookup-bc
157
+ endif
158
+
148
159
CIRCUITPY_CONSOLE_UART ?= 0
149
160
CFLAGS += -DCIRCUITPY_CONSOLE_UART=$(CIRCUITPY_CONSOLE_UART )
150
161
You can’t perform that action at this time.
0 commit comments