From ddd1e188011a021537c87c75f0a9e1818e335d5d Mon Sep 17 00:00:00 2001 From: Damien George Date: Sat, 10 Jan 2015 14:07:24 +0000 Subject: py: Add config option MICROPY_COMP_MODULE_CONST for module consts. Compiler optimises lookup of module.CONST when enabled (an existing feature). Disabled by default; enabled for unix, windows, stmhal. Costs about 100 bytes ROM on stmhal. --- stmhal/mpconfigport.h | 1 + 1 file changed, 1 insertion(+) (limited to 'stmhal') diff --git a/stmhal/mpconfigport.h b/stmhal/mpconfigport.h index a121cd1cb..c1e4b0f9d 100644 --- a/stmhal/mpconfigport.h +++ b/stmhal/mpconfigport.h @@ -33,6 +33,7 @@ #define MICROPY_ALLOC_PATH_MAX (128) #define MICROPY_EMIT_THUMB (1) #define MICROPY_EMIT_INLINE_THUMB (1) +#define MICROPY_COMP_MODULE_CONST (1) #define MICROPY_ENABLE_GC (1) #define MICROPY_ENABLE_FINALISER (1) #define MICROPY_STACK_CHECK (1) -- cgit v1.2.3