bare-arm: Switch to use MICROPY_ERROR_REPORTING_NONE to reduce size.
Reduces size of this port by about 3300 bytes, and demonstrates how to use this feature. Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
parent
d4b706c4d0
commit
43a8c8178e
@ -5,7 +5,7 @@ include ../../py/mkenv.mk
|
||||
include $(TOP)/py/py.mk
|
||||
|
||||
# Set makefile-level MicroPython feature configurations.
|
||||
MICROPY_ROM_TEXT_COMPRESSION ?= 1
|
||||
MICROPY_ROM_TEXT_COMPRESSION ?= 0
|
||||
|
||||
# Define toolchain and other tools.
|
||||
CROSS_COMPILE ?= arm-none-eabi-
|
||||
|
@ -18,4 +18,4 @@ compiled and executed when the firmware starts. They produce output on the
|
||||
system's stdout.
|
||||
|
||||
The size of the firmware (the machine code that is programmed to the
|
||||
microcontroller's flash/ROM) is currently around 61200 bytes.
|
||||
microcontroller's flash/ROM) is currently around 57900 bytes.
|
||||
|
@ -37,7 +37,7 @@
|
||||
|
||||
// Python internal features
|
||||
#define MICROPY_ENABLE_EXTERNAL_IMPORT (0)
|
||||
#define MICROPY_ERROR_REPORTING (MICROPY_ERROR_REPORTING_TERSE)
|
||||
#define MICROPY_ERROR_REPORTING (MICROPY_ERROR_REPORTING_NONE)
|
||||
#define MICROPY_CPYTHON_COMPAT (0)
|
||||
#define MICROPY_MODULE_GETATTR (0)
|
||||
#define MICROPY_BUILTIN_METHOD_CHECK_SELF_ARG (0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user