kopia lustrzana https://github.com/micropython/micropython
minimal: Increase heap size for Linux builds.
Otherwise use of the REPL is quite limited. Fixes issue #10644.pull/10769/head
rodzic
4598b89ce9
commit
294098d28e
|
@ -29,7 +29,7 @@ void do_str(const char *src, mp_parse_input_kind_t input_kind) {
|
||||||
|
|
||||||
static char *stack_top;
|
static char *stack_top;
|
||||||
#if MICROPY_ENABLE_GC
|
#if MICROPY_ENABLE_GC
|
||||||
static char heap[2048];
|
static char heap[MICROPY_HEAP_SIZE];
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
int main(int argc, char **argv) {
|
int main(int argc, char **argv) {
|
||||||
|
|
|
@ -33,11 +33,13 @@ typedef long mp_off_t;
|
||||||
|
|
||||||
#ifdef __linux__
|
#ifdef __linux__
|
||||||
#define MICROPY_MIN_USE_STDOUT (1)
|
#define MICROPY_MIN_USE_STDOUT (1)
|
||||||
|
#define MICROPY_HEAP_SIZE (25600) // heap size 25 kilobytes
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef __thumb__
|
#ifdef __thumb__
|
||||||
#define MICROPY_MIN_USE_CORTEX_CPU (1)
|
#define MICROPY_MIN_USE_CORTEX_CPU (1)
|
||||||
#define MICROPY_MIN_USE_STM32_MCU (1)
|
#define MICROPY_MIN_USE_STM32_MCU (1)
|
||||||
|
#define MICROPY_HEAP_SIZE (2048) // heap size 2 kilobytes
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define MP_STATE_PORT MP_STATE_VM
|
#define MP_STATE_PORT MP_STATE_VM
|
||||||
|
|
Ładowanie…
Reference in New Issue