From 1e9a92f84fb58db610e20b766052292edc28d25b Mon Sep 17 00:00:00 2001 From: Damien George Date: Thu, 6 Nov 2014 17:36:16 +0000 Subject: py: Use shorter, static error msgs when ERROR_REPORTING_TERSE enabled. Going from MICROPY_ERROR_REPORTING_NORMAL to MICROPY_ERROR_REPORTING_TERSE now saves 2020 bytes ROM for ARM Thumb2, and 2200 bytes ROM for 32-bit x86. This is about a 2.5% code size reduction for bare-arm. --- bare-arm/mpconfigport.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bare-arm') diff --git a/bare-arm/mpconfigport.h b/bare-arm/mpconfigport.h index ab234b447..59f246e2b 100644 --- a/bare-arm/mpconfigport.h +++ b/bare-arm/mpconfigport.h @@ -12,6 +12,8 @@ #define MICROPY_HELPER_REPL (0) #define MICROPY_HELPER_LEXER_UNIX (0) #define MICROPY_ENABLE_SOURCE_LINE (0) +#define MICROPY_ENABLE_DOC_STRING (0) +#define MICROPY_ERROR_REPORTING (MICROPY_ERROR_REPORTING_TERSE) #define MICROPY_PY_BUILTINS_BYTEARRAY (0) #define MICROPY_PY_BUILTINS_MEMORYVIEW (0) #define MICROPY_PY_BUILTINS_FROZENSET (0) @@ -31,8 +33,6 @@ #define MICROPY_LONGINT_IMPL (MICROPY_LONGINT_IMPL_NONE) #define MICROPY_FLOAT_IMPL (MICROPY_FLOAT_IMPL_NONE) -//#define MICROPY_ERROR_REPORTING (MICROPY_ERROR_REPORTING_TERSE) - // type definitions for the specific machine #define BYTES_PER_WORD (4) -- cgit v1.2.3