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. --- bare-arm/mpconfigport.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'bare-arm') diff --git a/bare-arm/mpconfigport.h b/bare-arm/mpconfigport.h index 0015541f9..e9a755294 100644 --- a/bare-arm/mpconfigport.h +++ b/bare-arm/mpconfigport.h @@ -6,6 +6,8 @@ #define MICROPY_EMIT_X64 (0) #define MICROPY_EMIT_THUMB (0) #define MICROPY_EMIT_INLINE_THUMB (0) +#define MICROPY_COMP_MODULE_CONST (0) +#define MICROPY_COMP_CONST (0) #define MICROPY_MEM_STATS (0) #define MICROPY_DEBUG_PRINTERS (0) #define MICROPY_ENABLE_GC (0) -- cgit v1.2.3