diff options
| author | Damien George <damien.p.george@gmail.com> | 2016-01-31 22:16:41 +0000 |
|---|---|---|
| committer | Damien George <damien.p.george@gmail.com> | 2016-04-13 16:07:47 +0100 |
| commit | f9448ddc2c49d7cdaf7dee8ed5e88837e8964f05 (patch) | |
| tree | 8a8d82158a8f4a23b76e183a461b7a70ebb41066 /minimal/mpconfigport.h | |
| parent | 0a2e9650f5383bc1190d6b27a3d923e313c3d879 (diff) | |
minimal: Add example of frozen persistent bytecode (.mpy file).
frozentest.py is frozen into the binary as frozen bytecode. The .mpy
file is included so that there is no dependency on the cross compiler.
Diffstat (limited to 'minimal/mpconfigport.h')
| -rw-r--r-- | minimal/mpconfigport.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/minimal/mpconfigport.h b/minimal/mpconfigport.h index 95e216b12..c8f983865 100644 --- a/minimal/mpconfigport.h +++ b/minimal/mpconfigport.h @@ -3,6 +3,7 @@ // options to control how Micro Python is built #define MICROPY_QSTR_BYTES_IN_HASH (1) +#define MICROPY_QSTR_EXTRA_POOL mp_qstr_frozen_const_pool #define MICROPY_ALLOC_PATH_MAX (256) #define MICROPY_ALLOC_PARSE_CHUNK_INIT (16) #define MICROPY_EMIT_X64 (0) @@ -43,7 +44,7 @@ #define MICROPY_PY_IO (0) #define MICROPY_PY_STRUCT (0) #define MICROPY_PY_SYS (0) -#define MICROPY_MODULE_FROZEN (0) +#define MICROPY_MODULE_FROZEN_MPY (1) #define MICROPY_CPYTHON_COMPAT (0) #define MICROPY_LONGINT_IMPL (MICROPY_LONGINT_IMPL_NONE) #define MICROPY_FLOAT_IMPL (MICROPY_FLOAT_IMPL_NONE) |
