Skip to content

Commit d83177b

Browse files
committed
unix/mpconfigport_minimal.h: Allow to print a string within 1KB of heap.
By adjusting parser allocation policy.
1 parent e965d2b commit d83177b

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

unix/mpconfigport_minimal.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,12 @@
2626

2727
// options to control how Micro Python is built
2828

29+
#define MICROPY_ALLOC_QSTR_CHUNK_INIT (64)
30+
#define MICROPY_ALLOC_PARSE_RULE_INIT (8)
31+
#define MICROPY_ALLOC_PARSE_RULE_INC (8)
32+
#define MICROPY_ALLOC_PARSE_RESULT_INIT (8)
33+
#define MICROPY_ALLOC_PARSE_RESULT_INC (8)
34+
#define MICROPY_ALLOC_PARSE_CHUNK_INIT (64)
2935
#define MICROPY_ALLOC_PATH_MAX (PATH_MAX)
3036
#define MICROPY_ENABLE_GC (1)
3137
#define MICROPY_ENABLE_FINALISER (0)

0 commit comments

Comments
 (0)